From 167abe52397bfb09dfdf7d3ef585ca57cc9e6dc0 Mon Sep 17 00:00:00 2001 From: wandji Date: Thu, 31 Aug 2023 11:51:49 +0100 Subject: [PATCH] Add .json extension to OVE import tooltip [SCI-9116] (#6112) * Add .json extension to OVE import tooltip [SCI-9116] * Override import and downlod tooltip values [SCI-9116] --- app/javascript/vue/ove/OpenVectorEditor.vue | 20 +++++++++++++++++++- config/locales/en.yml | 3 +++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/ove/OpenVectorEditor.vue b/app/javascript/vue/ove/OpenVectorEditor.vue index 7b87ca04f..9a36e9865 100644 --- a/app/javascript/vue/ove/OpenVectorEditor.vue +++ b/app/javascript/vue/ove/OpenVectorEditor.vue @@ -63,7 +63,25 @@ onSave: this.saveFile, generatePng: true, readOnly: this.readOnly, - showMenuBar: true + showMenuBar: true, + ToolBarProps: { + toolList: [ + 'saveTool', + 'downloadTool', + { name: 'importTool', tooltip: I18n.t('open_vector_editor.editor.tooltips.importTool') }, + 'undoTool', + 'redoTool', + 'cutsiteTool', + 'featureTool', + 'partTool', + 'oligoTool', + 'orfTool', + 'alignmentTool', + 'editTool', + 'findTool', + 'visibilityTool' + ] + } } if (this.readOnly) { diff --git a/config/locales/en.yml b/config/locales/en.yml index 6e96857e6..ebe2fae78 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3711,6 +3711,9 @@ en: bullet_2: "Visualize" bullet_3: "Annotate" button: "Try Sequence editor" + editor: + tooltips: + importTool: "Click or drag to import and view files (.fasta .gb .dna .json)" pdf_preview: fit_to_screen: 'Fit to screen' pages: