From fb21f0fd84be6f1ae53085179b6c7d28614bdaf2 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 14 Oct 2024 20:09:53 +0300 Subject: [PATCH] [SSE] Fix bug 70509 --- apps/spreadsheeteditor/main/app/controller/Statusbar.js | 1 + apps/spreadsheeteditor/main/app/view/Statusbar.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index bc636cf9f3..8f1459d379 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -604,6 +604,7 @@ define([ supportBooks: supportBooks, spreadsheetName: me.api.asc_getDocumentName(), isDesktopApp: me.statusbar.mode.isDesktopApp, + isOffline: me.statusbar.mode.isOffline, handler : function(result, i, copy, workbook) { btn = result; if (btn == 'ok') { diff --git a/apps/spreadsheeteditor/main/app/view/Statusbar.js b/apps/spreadsheeteditor/main/app/view/Statusbar.js index 5b3a01a2d4..57032400d2 100644 --- a/apps/spreadsheeteditor/main/app/view/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/view/Statusbar.js @@ -1138,7 +1138,7 @@ define([ changed: false, opened: false }; - if (this.options.isDesktopApp) { + if (this.options.isDesktopApp && this.options.isOffline) { this.spreadsheets.data.push({displayValue: this.textCreateNewSpreadsheet, value: 'new', index: -1}); }