From dd6546ae544251924f80ce759a30c9e438a7ebb8 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Wed, 18 Dec 2024 11:03:28 +0300 Subject: [PATCH] [DE] restart app in mobile mode without warning --- apps/documenteditor/main/app/controller/LeftMenu.js | 10 +--------- apps/documenteditor/main/locale/en.json | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 35b8bb16fc..34275a55b2 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -305,15 +305,7 @@ define([ break; case 'close-editor': Common.NotificationCenter.trigger('close'); break; case 'switch:mobile': - Common.UI.info({ - msg: this.warnSwitchMobile, - buttons: [{value: 'yes', caption: this.btnRestartNow}, 'cancel'], - primary: 'yes', - callback: function(btn) { - if ( btn == 'yes' ) - Common.Gateway.requestForceDesktopMode(false, true); - } - }); + Common.Gateway.requestForceDesktopMode(false, true); break; default: close_menu = false; } diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index c879ad2e59..9082d4b105 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -881,7 +881,6 @@ "DE.Controllers.LeftMenu.warnDownloadAsPdf": "Your {0} will be converted to an editable format. This may take a while. The resulting document will be optimized to allow you to edit the text, so it might not look exactly like the original {0}, especially if the original file contained lots of graphics.", "DE.Controllers.LeftMenu.warnDownloadAsRTF": "If you continue saving in this format some of the formatting might be lost.
Are you sure you want to continue?", "DE.Controllers.LeftMenu.warnReplaceString": "{0} is not a valid special character for the replacement field.", - "DE.Controllers.LeftMenu.warnSwitchMobile": "Editor must be restarted to apply settings.", "DE.Controllers.Main.applyChangesTextText": "Loading the changes...", "DE.Controllers.Main.applyChangesTitleText": "Loading the Changes", "DE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.
Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",