[SSE] Add error on a protected sheet

This commit is contained in:
Julia Radzhabova 2021-06-22 16:15:15 +03:00
parent 65498d9582
commit fb57f2d0e2
3 changed files with 12 additions and 2 deletions

View file

@ -1692,6 +1692,10 @@ define([
config.msg = this.errorPivotWithoutUnderlying;
break;
case Asc.c_oAscError.ID.ChangeOnProtectedSheet:
config.msg = this.errorChangeOnProtectedSheet;
break;
default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break;
@ -2952,7 +2956,8 @@ define([
errorPivotWithoutUnderlying: 'The Pivot Table report was saved without the underlying data.<br>Use the \'Refresh\' button to update the report.',
txtQuarter: 'Qtr',
txtOr: '%1 or %2',
confirmReplaceFormulaInTable: 'Formulas in the header row will be removed and converted to static text.<br>Do you want to continue?'
confirmReplaceFormulaInTable: 'Formulas in the header row will be removed and converted to static text.<br>Do you want to continue?',
errorChangeOnProtectedSheet: 'The cell or chart you are trying to change is on a protected sheet.<br>To make a change, unprotect the sheet. You might be requested to enter a password.'
}
})(), SSE.Controllers.Main || {}))
});

View file

@ -164,7 +164,8 @@
"errorFrmlMaxTextLength": "Text values in formulas are limited to 255 characters.<br>Use the CONCATENATE function or concatenation operator (&)",
"errorFrmlMaxLength": "You cannot add this formula as its length exceeded the allowed number of characters.<br>Please edit it and try again.",
"errorFrmlMaxReference": "You cannot enter this formula because it has too many values,<br>cell references, and/or names.",
"errorDataValidate":"The value you entered is not valid.<br>A user has restricted values that can be entered into this cell."
"errorDataValidate":"The value you entered is not valid.<br>A user has restricted values that can be entered into this cell.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet.<br>To make a change, unprotect the sheet."
},
"ContextMenu": {
"menuViewComment": "View Comment",

View file

@ -299,6 +299,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
config.msg = _t.errorUpdateVersionOnDisconnect;
break;
case Asc.c_oAscError.ID.ChangeOnProtectedSheet:
config.msg = _t.errorChangeOnProtectedSheet;
break;
default:
config.msg = _t.errorDefaultMessage.replace('%1', id);
break;