[DE] Hide adding content controls (#314)
This commit is contained in:
parent
904ebcdc0c
commit
55c8f61a17
|
@ -359,6 +359,7 @@ define([
|
|||
this.appOptions.canRequestSharingSettings = this.editorConfig.canRequestSharingSettings;
|
||||
this.appOptions.compatibleFeatures = (typeof (this.appOptions.customization) == 'object') && !!this.appOptions.customization.compatibleFeatures;
|
||||
this.appOptions.canFeatureComparison = !!this.api.asc_isSupportFeature("comparison");
|
||||
this.appOptions.canFeatureContentControl = !!this.api.asc_isSupportFeature("content-сontrols");
|
||||
this.appOptions.mentionShare = !((typeof (this.appOptions.customization) == 'object') && (this.appOptions.customization.mentionShare==false));
|
||||
|
||||
appHeader = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
|
|
|
@ -1761,6 +1761,8 @@ define([
|
|||
},
|
||||
|
||||
onControlsSelect: function(menu, item) {
|
||||
if (!(this.mode && this.mode.canFeatureContentControl)) return;
|
||||
|
||||
if (item.value == 'settings' || item.value == 'remove') {
|
||||
if (this.api.asc_IsContentControl()) {
|
||||
var props = this.api.asc_GetContentControlProperties();
|
||||
|
|
|
@ -1538,6 +1538,10 @@ define([
|
|||
}));
|
||||
|
||||
me.btnWatermark.updateHint(me.tipWatermark);
|
||||
|
||||
if (!config.canFeatureContentControl && me.btnContentControls.cmpEl) {
|
||||
me.btnContentControls.cmpEl.parents('.group').hide().prev('.separator').hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue