From c7e5a730da07404e545cd4638d3dfb49418484c6 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 29 Mar 2019 12:21:43 +0300 Subject: [PATCH] [Embedded] Add c_oAscError.ID.UserDrop error --- apps/documenteditor/embed/js/ApplicationController.js | 7 ++++++- apps/presentationeditor/embed/js/ApplicationController.js | 7 ++++++- apps/spreadsheeteditor/embed/js/ApplicationController.js | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index 999c40b60..ddd62ba94 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -394,6 +394,10 @@ var ApplicationController = new(function(){ message = me.errorFilePassProtect; break; + case Asc.c_oAscError.ID.UserDrop: + message = me.errorUserDrop; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -544,6 +548,7 @@ var ApplicationController = new(function(){ notcriticalErrorTitle : 'Warning', scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', errorFilePassProtect: 'The file is password protected and cannot be opened.', - errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.' + errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.', + errorUserDrop: 'The file cannot be accessed right now.' } })(); \ No newline at end of file diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index e8625b6f5..236806af9 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -494,6 +494,10 @@ var ApplicationController = new(function(){ message = me.errorFilePassProtect; break; + case Asc.c_oAscError.ID.UserDrop: + message = me.errorUserDrop; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -615,6 +619,7 @@ var ApplicationController = new(function(){ notcriticalErrorTitle : 'Warning', scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', errorFilePassProtect: 'The file is password protected and cannot be opened.', - errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.' + errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.', + errorUserDrop: 'The file cannot be accessed right now.' } })(); diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 0aaebd439..05fe7f2d1 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -402,6 +402,10 @@ var ApplicationController = new(function(){ message = me.errorFilePassProtect; break; + case Asc.c_oAscError.ID.UserDrop: + message = me.errorUserDrop; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -562,6 +566,7 @@ var ApplicationController = new(function(){ notcriticalErrorTitle : 'Warning', scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', errorFilePassProtect: 'The file is password protected and cannot be opened.', - errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.' + errorAccessDeny: 'You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.', + errorUserDrop: 'The file cannot be accessed right now.' } })(); \ No newline at end of file