[SSE] Add error for locked views

This commit is contained in:
Julia Radzhabova 2020-09-18 13:15:00 +03:00
parent b9ce71728c
commit 82156d4986
3 changed files with 10 additions and 5 deletions

View file

@ -1534,6 +1534,10 @@ define([
config.msg = this.errorMoveSlicerError;
break;
case Asc.c_oAscError.ID.LockedEditView:
config.msg = this.errorEditView;
break;
default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break;
@ -2663,7 +2667,8 @@ define([
errorPasteSlicerError: 'Table slicers cannot be copied from one workbook to another.',
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.',
errorMoveSlicerError: 'Table slicers cannot be copied from one workbook to another.<br>Try again by selecting the entire table and the slicers.'
errorMoveSlicerError: 'Table slicers cannot be copied from one workbook to another.<br>Try again by selecting the entire table and the slicers.',
errorEditView: 'The existing sheet view cannot be edited and the new ones cannot be created at the moment as some of them are being edited.'
}
})(), SSE.Controllers.Main || {}))
});

View file

@ -235,8 +235,8 @@ define([
}
},
onLockNamedSheetViewManager: function(state) {
this._state.viewlocked = state;
onLockNamedSheetViewManager: function(index, state) {
// this._state.viewlocked = state;
},
errorEditView: 'The existing sheet view cannot be edited and the new ones cannot be created at the moment as some of them are being edited.'

View file

@ -169,8 +169,8 @@ define([
this.refreshList(this.api.asc_getNamedSheetViews(), this.currentView);
},
onLockNamedSheetViewManager: function(state) {
this.locked = state;
onLockNamedSheetViewManager: function(index, state) {
// this.locked = state;
},
refreshList: function(views, selectedItem) {