Use customization->about for hiding about in the left panel (for licensed users only).

This commit is contained in:
Julia Radzhabova 2017-03-07 14:35:27 +03:00
parent 8b8b9b668d
commit c9cc58fd3d
4 changed files with 20 additions and 8 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://...
@ -551,7 +551,7 @@
lang: 'en', lang: 'en',
canCoAuthoring: true, canCoAuthoring: true,
customization: { customization: {
about: false, about: true,
feedback: false feedback: false
} }
} }

View file

@ -1474,8 +1474,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.canBranding)
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);

View file

@ -1227,8 +1227,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.canBranding)
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);

View file

@ -1365,8 +1365,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.canBranding)
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);