[desktop] added option to hide themes selector

This commit is contained in:
Maxim Kadushkin 2021-05-15 00:06:59 +03:00
parent 11ab64a4d8
commit 668dfb5680
2 changed files with 8 additions and 1 deletions

View file

@ -86,6 +86,9 @@ define([
$('.asc-window.modal').css('top', obj.skiptoparea);
Common.Utils.InternalSettings.set('window-inactive-area-top', obj.skiptoparea);
} else
if ( obj.lockthemes != undefined ) {
Common.UI.Themes.setAvailable(!obj.lockthemes);
}
} else
if (/editor:config/.test(cmd)) {

View file

@ -226,7 +226,11 @@ define([
},
available: function () {
return !Common.Utils.isIE;
return !Common.Utils.isIE && !!this.locked;
},
setAvailable: function (value) {
this.locked = value;
},
map: function () {