From 5ef4d46b362cfedd21e5f7181740ec3a64f9133d Mon Sep 17 00:00:00 2001 From: khansadaoudi Date: Tue, 15 Oct 2024 16:14:11 +0200 Subject: [PATCH] add possibility to change the sent_id of a sentence --- src/api/endpoints.d.ts | 4 +- src/components/sentence/AttributeTable.vue | 31 +-------- src/components/sentence/MetaDialog.vue | 81 ++++++++++++++++++---- src/components/sentence/SentenceCard.vue | 12 ++-- 4 files changed, 81 insertions(+), 47 deletions(-) diff --git a/src/api/endpoints.d.ts b/src/api/endpoints.d.ts index f27a36d3..ee2e62e2 100644 --- a/src/api/endpoints.d.ts +++ b/src/api/endpoints.d.ts @@ -70,8 +70,8 @@ export type getProjectSamples_RV = sample_t[]; //// TREES export interface updateTree_ED { - sent_id: string; - user_id: string; + sentId: string; + userId: string; conll: string; } diff --git a/src/components/sentence/AttributeTable.vue b/src/components/sentence/AttributeTable.vue index 745ffcf9..285d58ad 100644 --- a/src/components/sentence/AttributeTable.vue +++ b/src/components/sentence/AttributeTable.vue @@ -39,14 +39,8 @@ - - - + {{ $t('attributeTable.eraseFeature') }} {{ props.row.a }} @@ -97,7 +91,6 @@ - diff --git a/src/components/sentence/MetaDialog.vue b/src/components/sentence/MetaDialog.vue index 03c26f85..223aa0fc 100644 --- a/src/components/sentence/MetaDialog.vue +++ b/src/components/sentence/MetaDialog.vue @@ -6,25 +6,52 @@ - + + + + + + + + + + - - + +