From 8197a5a0b267be789bef4dbbf0828a01ca854f70 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 17 Jul 2020 11:16:43 +0300 Subject: [PATCH] [SSE] Show tip when first opening sheet view mode --- .../main/app/controller/Statusbar.js | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index d93061354..62462da3d 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -727,13 +727,33 @@ define([ if (tab) { tab.changeIconState(active, name); } - + + if (active && !Common.localStorage.getBool("sse-hide-sheet-view-tip") && !Common.Utils.InternalSettings.get("sse-hide-sheet-view-tip")) { + Common.Utils.InternalSettings.set("sse-hide-sheet-view-tip", true); + var tip = new Common.UI.SynchronizeTip({ + target : $('#editor_sdk'), + extCls : 'no-arrow', + text : this.textSheetViewTip, + placement : 'target' + }); + tip.on({ + 'dontshowclick': function() { + Common.localStorage.setBool("sse-hide-sheet-view-tip", true); + this.close(); + }, + 'closeclick': function() { + this.close(); + } + }); + tip.show(); + } }, zoomText : 'Zoom {0}%', errorLastSheet : 'Workbook must have at least one visible worksheet.', errorRemoveSheet: 'Can\'t delete the worksheet.', warnDeleteSheet : 'The worksheet maybe has data. Proceed operation?', - strSheet : 'Sheet' + strSheet : 'Sheet', + textSheetViewTip: 'You are in Sheet View mode. Filters and sorting are visible only to you and those who are still in this view.' }, SSE.Controllers.Statusbar || {})); }); \ No newline at end of file