From 511d8175e6e99c1aa41c42d5c284b6a3fdaddf7d Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 15 Oct 2021 14:19:49 +0900 Subject: [PATCH] Update sequence labeling page --- frontend/pages/projects/_id/links/index.vue | 6 +- .../projects/_id/sequence-labeling/index.vue | 105 +++++------------- .../services/application/links/linkData.ts | 16 +-- .../links/linkTypesApplicationService.ts | 4 +- 4 files changed, 42 insertions(+), 89 deletions(-) diff --git a/frontend/pages/projects/_id/links/index.vue b/frontend/pages/projects/_id/links/index.vue index 04c9cd15..a10a842a 100644 --- a/frontend/pages/projects/_id/links/index.vue +++ b/frontend/pages/projects/_id/links/index.vue @@ -71,11 +71,11 @@ export default Vue.extend({ dialogUpload: false, editedIndex: -1, editedItem: { - name: '', + text: '', color: '#ffffff' } as LinkTypeDTO, defaultItem: { - name: '', + text: '', color: '#ffffff' } as LinkTypeDTO, items: [] as LinkTypeDTO[], @@ -94,7 +94,7 @@ export default Vue.extend({ }, usedNames(): string[] { const item = this.items[this.editedIndex] // to remove myself - return this.items.filter(_ => _ !== item).map(item => item.name) + return this.items.filter(_ => _ !== item).map(item => item.text) } }, diff --git a/frontend/pages/projects/_id/sequence-labeling/index.vue b/frontend/pages/projects/_id/sequence-labeling/index.vue index 66ae5273..bbfcfa53 100644 --- a/frontend/pages/projects/_id/sequence-labeling/index.vue +++ b/frontend/pages/projects/_id/sequence-labeling/index.vue @@ -18,24 +18,21 @@