[PE] Slide master mode: hide Transitions and Animation tabs

This commit is contained in:
Julia.Svinareva
2024-06-05 16:09:39 +03:00
parent a19cb1265e
commit 995015283f

View File

@ -2976,11 +2976,14 @@ define([
},
onChangeViewMode: function (mode) { // master or normal
this.toolbar.$el.find('.master-slide-mode')[mode==='master'?'show':'hide']();
this.toolbar.$el.find('.normal-mode')[mode==='normal'?'show':'hide']();
this.toolbar.lockToolbar(Common.enumLock.slideMasterMode, mode==='master', { array: this.btnsComment });
var isMaster = mode==='master';
this.toolbar.$el.find('.master-slide-mode')[isMaster?'show':'hide']();
this.toolbar.$el.find('.normal-mode')[!isMaster?'show':'hide']();
this.toolbar.lockToolbar(Common.enumLock.slideMasterMode, isMaster, { array: this.btnsComment });
mode==='master' && this.toolbar.setTab('ins');
isMaster && this.toolbar.setTab('ins');
Common.NotificationCenter.trigger('tab:visible', 'transit', !isMaster);
Common.NotificationCenter.trigger('tab:visible', 'animate', !isMaster);
},
onInsertSlideMaster: function () {