[DE] Add error for protected range

This commit is contained in:
Julia Radzhabova
2025-01-24 14:28:20 +03:00
parent 6cdb3f1670
commit f9398c90bf
4 changed files with 11 additions and 0 deletions

View File

@ -2300,6 +2300,11 @@ define([
config.msg = this.errorSaveWatermark;
break;
case Asc.c_oAscError.ID.EditProtectedRange:
config.maxwidth = 600;
config.msg = this.errorEditProtectedRange;
break;
case Asc.c_oAscError.ID.ConvertationOpenFormat:
config.maxwidth = 600;
if (errData === 'pdf')

View File

@ -939,6 +939,7 @@
"DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
"DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"DE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.",
"DE.Controllers.Main.errorEditProtectedRange": "You are not allowed to edit this selection because it is protected.",
"DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
"DE.Controllers.Main.loadFontsTextText": "Loading data...",

View File

@ -464,6 +464,7 @@
"errorUserDrop": "The file can't be accessed right now.",
"errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but you won't be able to download or print it until the connection is restored and the page is reloaded.",
"errorEditProtectedRange": "You are not allowed to edit this selection because it is protected.",
"notcriticalErrorTitle": "Warning",
"openErrorText": "An error has occurred while opening the file",
"saveErrorText": "An error has occurred while saving the file",

View File

@ -259,6 +259,10 @@ const ErrorController = inject('storeAppOptions','storeDocumentInfo')(({storeApp
config.msg = t('Error.errorPDFFormsLocked');
break;
case Asc.c_oAscError.ID.EditProtectedRange:
config.msg = t('Error.errorEditProtectedRange');
break;
default:
config.msg = _t.errorDefaultMessage.replace('%1', id);
break;