[SSE] Add error for locked views
This commit is contained in:
parent
b9ce71728c
commit
82156d4986
|
@ -1534,6 +1534,10 @@ define([
|
||||||
config.msg = this.errorMoveSlicerError;
|
config.msg = this.errorMoveSlicerError;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.LockedEditView:
|
||||||
|
config.msg = this.errorEditView;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
|
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
|
||||||
break;
|
break;
|
||||||
|
@ -2663,7 +2667,8 @@ define([
|
||||||
errorPasteSlicerError: 'Table slicers cannot be copied from one workbook to another.',
|
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.',
|
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.',
|
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 || {}))
|
})(), SSE.Controllers.Main || {}))
|
||||||
});
|
});
|
||||||
|
|
|
@ -235,8 +235,8 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLockNamedSheetViewManager: function(state) {
|
onLockNamedSheetViewManager: function(index, state) {
|
||||||
this._state.viewlocked = 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.'
|
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.'
|
||||||
|
|
|
@ -169,8 +169,8 @@ define([
|
||||||
this.refreshList(this.api.asc_getNamedSheetViews(), this.currentView);
|
this.refreshList(this.api.asc_getNamedSheetViews(), this.currentView);
|
||||||
},
|
},
|
||||||
|
|
||||||
onLockNamedSheetViewManager: function(state) {
|
onLockNamedSheetViewManager: function(index, state) {
|
||||||
this.locked = state;
|
// this.locked = state;
|
||||||
},
|
},
|
||||||
|
|
||||||
refreshList: function(views, selectedItem) {
|
refreshList: function(views, selectedItem) {
|
||||||
|
|
Loading…
Reference in a new issue