From 56c595ce27cbad8382fc0a5ffae0365bdf4a4762 Mon Sep 17 00:00:00 2001 From: Mohamed Amine Krout Date: Thu, 31 Aug 2023 16:30:08 +0100 Subject: [PATCH] Task-65373: Language version option Task-65423: Add a language --- notes-webapp/src/main/webapp/skin/less/notes/notes.less | 5 +++++ .../notes-editor/components/NotesEditorDashboard.vue | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/notes-webapp/src/main/webapp/skin/less/notes/notes.less b/notes-webapp/src/main/webapp/skin/less/notes/notes.less index b1ead7d7f..ab9d2ef22 100644 --- a/notes-webapp/src/main/webapp/skin/less/notes/notes.less +++ b/notes-webapp/src/main/webapp/skin/less/notes/notes.less @@ -1163,4 +1163,9 @@ ul.note-manual-child { } +.right-separator { + border-right: solid; +} + + diff --git a/notes-webapp/src/main/webapp/vue-app/notes-editor/components/NotesEditorDashboard.vue b/notes-webapp/src/main/webapp/vue-app/notes-editor/components/NotesEditorDashboard.vue index 621fb3035..0e4aa7206 100644 --- a/notes-webapp/src/main/webapp/vue-app/notes-editor/components/NotesEditorDashboard.vue +++ b/notes-webapp/src/main/webapp/vue-app/notes-editor/components/NotesEditorDashboard.vue @@ -199,11 +199,13 @@ export default { 'note.title'() { if (this.note.title !== this.actualNote.title ) { this.autoSave(); + this.hideTranslations(); } }, 'note.content'() { if (this.note.content !== this.actualNote.content) { this.autoSave(); + this.hideTranslations(); } }, }, @@ -927,6 +929,10 @@ export default { this.showTranslationBar=true; this.$refs.translationsEditBar.show(); }, + hideTranslations() { + this.showTranslationBar=false; + this.$refs.translationsEditBar.hide(); + }, isDefaultContent(noteContent) { const div = document.createElement('div'); div.innerHTML = noteContent;