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}); }