Client: PortalSettings: WhiteLabel: fix

This commit is contained in:
Viktor Fomin 2024-08-09 14:41:08 +03:00
parent f20d99950c
commit 6dccc8623e

View File

@ -568,55 +568,50 @@ const WhiteLabel = (props) => {
);
};
export default inject(
({ settingsStore, common, currentQuotaStore, authStore }) => {
const {
setLogoText,
whiteLabelLogoText,
getWhiteLabelLogoText,
restoreWhiteLabelSettings,
initSettings,
saveWhiteLabelSettings,
logoUrlsWhiteLabel,
setLogoUrlsWhiteLabel,
defaultLogoTextWhiteLabel,
enableRestoreButton,
resetIsInit,
isWhitelableLoaded,
} = common;
export default inject(({ settingsStore, common, currentQuotaStore }) => {
const {
setLogoText,
whiteLabelLogoText,
getWhiteLabelLogoText,
restoreWhiteLabelSettings,
initSettings,
saveWhiteLabelSettings,
logoUrlsWhiteLabel,
setLogoUrlsWhiteLabel,
defaultLogoTextWhiteLabel,
enableRestoreButton,
resetIsInit,
isWhitelableLoaded,
} = common;
const {
whiteLabelLogoUrls: defaultWhiteLabelLogoUrls,
deviceType,
standalone,
} = settingsStore;
const { isBrandingAndCustomizationAvailable } = currentQuotaStore;
const { tenantExtra } = authStore;
const {
whiteLabelLogoUrls: defaultWhiteLabelLogoUrls,
deviceType,
standalone,
} = settingsStore;
const { isBrandingAndCustomizationAvailable, isCustomizationAvailable } =
currentQuotaStore;
const isCustomizationAvailable =
tenantExtra?.docServerLicense?.customization;
return {
setLogoText,
theme: settingsStore.theme,
logoText: whiteLabelLogoText,
getWhiteLabelLogoText,
saveWhiteLabelSettings,
restoreWhiteLabelSettings,
defaultWhiteLabelLogoUrls,
isSettingPaid: isBrandingAndCustomizationAvailable,
initSettings,
logoUrlsWhiteLabel,
setLogoUrlsWhiteLabel,
defaultLogoTextWhiteLabel,
enableRestoreButton,
return {
setLogoText,
theme: settingsStore.theme,
logoText: whiteLabelLogoText,
getWhiteLabelLogoText,
saveWhiteLabelSettings,
restoreWhiteLabelSettings,
defaultWhiteLabelLogoUrls,
isSettingPaid: isBrandingAndCustomizationAvailable,
initSettings,
logoUrlsWhiteLabel,
setLogoUrlsWhiteLabel,
defaultLogoTextWhiteLabel,
enableRestoreButton,
deviceType,
resetIsInit,
standalone,
deviceType,
resetIsInit,
standalone,
isWhitelableLoaded,
isCustomizationAvailable,
};
},
)(withTranslation(["Settings", "Profile", "Common"])(observer(WhiteLabel)));
isWhitelableLoaded,
isCustomizationAvailable,
};
})(withTranslation(["Settings", "Profile", "Common"])(observer(WhiteLabel)));