diff --git a/packages/mindplot/src/components/lang/en.js b/packages/mindplot/src/components/lang/en.js index e9935337..aa3b9d99 100644 --- a/packages/mindplot/src/components/lang/en.js +++ b/packages/mindplot/src/components/lang/en.js @@ -77,6 +77,9 @@ const EN = { KEYBOARD_SHORTCUTS_MSG: 'Keyboard shortcuts can help you save time by allowing you to never take your hands off the keyboard to use the mouse.', COPY_AND_PASTE_TOPICS: 'Copy and Paste Topics', MULTIPLE_LINES: 'Add multiple text lines', + + + BACK_TO_MAP_LIST: 'Back to Maps List', }; export default EN; diff --git a/packages/mindplot/src/components/widget/Menu.js b/packages/mindplot/src/components/widget/Menu.js index 04dfbba8..b3fa2c71 100644 --- a/packages/mindplot/src/components/widget/Menu.js +++ b/packages/mindplot/src/components/widget/Menu.js @@ -246,15 +246,12 @@ class Menu extends IMenu { Menu._registerTooltip('print', $msg('PRINT')); - this._addButton('zoomIn', false, false, () => { - designer.zoomIn(); + $('#backToList').bind('click', (event) => { + event.stopPropagation(); + window.location = '/c/maps/'; + return false; }); - Menu._registerTooltip('zoomIn', $msg('ZOOM_IN')); - - this._addButton('zoomOut', false, false, () => { - designer.zoomOut(); - }); - Menu._registerTooltip('zoomOut', $msg('ZOOM_OUT')); + Menu._registerTooltip('backToList', $msg('BACK_TO_MAP_LIST')); const undoButton = this._addButton('undoEdition', false, false, () => { designer.undo(); diff --git a/packages/mindplot/test/playground/map-render/css/toolbar.less b/packages/mindplot/test/playground/map-render/css/toolbar.less index d44f3ab1..12e2d5ee 100644 --- a/packages/mindplot/test/playground/map-render/css/toolbar.less +++ b/packages/mindplot/test/playground/map-render/css/toolbar.less @@ -25,12 +25,11 @@ div#mapName >span { font-weight: bold; } -div#back { - background: url(../images/back-icon.svg) no-repeat center center; - height: 40px; - width: 80px; +div#backToList { + height: 24px; + width: 24px; float: left; - margin: 6px 0px; + margin: 13px 20px; } /******************************************************************************************/ diff --git a/packages/mindplot/test/playground/map-render/html/editor.html b/packages/mindplot/test/playground/map-render/html/editor.html index aa216806..fcac8a39 100644 --- a/packages/mindplot/test/playground/map-render/html/editor.html +++ b/packages/mindplot/test/playground/map-render/html/editor.html @@ -12,7 +12,9 @@