Use customization->about for hiding about in the left panel (for licensed users only). Can hide about when asc_getCanBranding() is true.

This commit is contained in:
Julia Radzhabova 2017-04-11 15:24:07 +03:00
parent 528ddf8588
commit a48bce7598
2 changed files with 8 additions and 4 deletions

View file

@ -96,7 +96,7 @@
info: 'Some info', info: 'Some info',
logo: '' logo: ''
}, },
about: false, about: true,
feedback: { feedback: {
visible: false, visible: false,
url: http://... url: http://...
@ -568,7 +568,7 @@
lang: 'en', lang: 'en',
canCoAuthoring: true, canCoAuthoring: true,
customization: { customization: {
about: false, about: true,
feedback: false feedback: false
} }
} }

View file

@ -1501,8 +1501,12 @@ define([
hidePreloader: function() { hidePreloader: function() {
if (!this._state.customizationDone) { if (!this._state.customizationDone) {
this._state.customizationDone = true; this._state.customizationDone = true;
if (this.appOptions.customization && !this.appOptions.isDesktopApp) if (this.appOptions.customization) {
this.appOptions.customization.about = true; if (this.appOptions.isDesktopApp)
this.appOptions.customization.about = false;
else if (!this.appOptions.canBrandingExt)
this.appOptions.customization.about = true;
}
Common.Utils.applyCustomization(this.appOptions.customization, mapCustomizationElements); Common.Utils.applyCustomization(this.appOptions.customization, mapCustomizationElements);
if (this.appOptions.canBrandingExt) { if (this.appOptions.canBrandingExt) {
Common.Utils.applyCustomization(this.appOptions.customization, mapCustomizationExtElements); Common.Utils.applyCustomization(this.appOptions.customization, mapCustomizationExtElements);