From fc7ed0f32c62a2532c13d13761204806ecc94db9 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 29 Nov 2021 19:22:34 +0300 Subject: [PATCH] [DE forms] Bug 54141 --- apps/common/forms/resources/less/common.less | 10 +++++++++- apps/documenteditor/forms/app/view/ApplicationView.js | 7 ++++++- apps/documenteditor/forms/locale/en.json | 4 +++- apps/documenteditor/forms/locale/ru.json | 4 +++- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/apps/common/forms/resources/less/common.less b/apps/common/forms/resources/less/common.less index b6f40bd3b..44e06dde8 100644 --- a/apps/common/forms/resources/less/common.less +++ b/apps/common/forms/resources/less/common.less @@ -436,7 +436,7 @@ .svg-icon { background: data-uri('../../../../common/forms/resources/img/icon-menu-sprite.svg') no-repeat; - background-size: @icon-width*22 @icon-height*2; + background-size: @icon-width*24 @icon-height*2; &.download { background-position: -@icon-width 0; @@ -512,6 +512,14 @@ background-position: -@icon-width*21 0; background-position: -@icon-width*21 @icon-normal-top; } + &.undo { + background-position: -@icon-width*22 0; + background-position: -@icon-width*22 @icon-normal-top; + } + &.redo { + background-position: -@icon-width*23 0; + background-position: -@icon-width*23 @icon-normal-top; + } } .btn { diff --git a/apps/documenteditor/forms/app/view/ApplicationView.js b/apps/documenteditor/forms/app/view/ApplicationView.js index 02303c67a..2c84b6dc1 100644 --- a/apps/documenteditor/forms/app/view/ApplicationView.js +++ b/apps/documenteditor/forms/app/view/ApplicationView.js @@ -91,6 +91,9 @@ define([ return new Common.UI.Menu({ cls: 'shifted-right', items: [ + { caption: this.textUndo, value: 'undo', iconCls: 'mi-icon svg-icon undo' }, + { caption: this.textRedo, value: 'redo', iconCls: 'mi-icon svg-icon redo' }, + { caption: '--' }, { caption: this.textCut, value: 'cut', iconCls: 'mi-icon svg-icon cut' }, { caption: this.textCopy, value: 'copy', iconCls: 'mi-icon svg-icon copy' }, { caption: this.textPaste, value: 'paste', iconCls: 'mi-icon svg-icon paste' } @@ -114,7 +117,9 @@ define([ textCopy: 'Copy', textPaste: 'Paste', textPrintSel: 'Print Selection', - txtDarkMode: 'Dark mode' + txtDarkMode: 'Dark mode', + textUndo: 'Undo', + textRedo: 'Redo' }, DE.Views.ApplicationView || {})); }); \ No newline at end of file diff --git a/apps/documenteditor/forms/locale/en.json b/apps/documenteditor/forms/locale/en.json index 08910c316..fe47a8604 100644 --- a/apps/documenteditor/forms/locale/en.json +++ b/apps/documenteditor/forms/locale/en.json @@ -132,5 +132,7 @@ "DE.Views.ApplicationView.txtFullScreen": "Full Screen", "DE.Views.ApplicationView.txtPrint": "Print", "DE.Views.ApplicationView.txtShare": "Share", - "DE.Views.ApplicationView.txtTheme": "Interface theme" + "DE.Views.ApplicationView.txtTheme": "Interface theme", + "DE.Views.ApplicationView.textUndo": "Undo", + "DE.Views.ApplicationView.textRedo": "Redo" } \ No newline at end of file diff --git a/apps/documenteditor/forms/locale/ru.json b/apps/documenteditor/forms/locale/ru.json index f91f3872d..72f9d36a5 100644 --- a/apps/documenteditor/forms/locale/ru.json +++ b/apps/documenteditor/forms/locale/ru.json @@ -131,5 +131,7 @@ "DE.Views.ApplicationView.txtFullScreen": "Во весь экран", "DE.Views.ApplicationView.txtPrint": "Печать", "DE.Views.ApplicationView.txtShare": "Поделиться", - "DE.Views.ApplicationView.txtTheme": "Тема интерфейса" + "DE.Views.ApplicationView.txtTheme": "Тема интерфейса", + "DE.Views.ApplicationView.textUndo": "Отменить", + "DE.Views.ApplicationView.textRedo": "Повторить" } \ No newline at end of file