Client: delete useless

This commit is contained in:
Viktor Fomin 2022-11-22 12:35:05 +05:00
parent 248b2017ad
commit 1a06ea3787
2 changed files with 0 additions and 15 deletions

View File

@ -307,10 +307,8 @@ export default inject(({ setup, auth, common }) => {
const { setWhiteLabelSettings } = setup;
const {
whiteLabelLogoSizes,
whiteLabelLogoText,
getWhiteLabelLogoText,
getWhiteLabelLogoSizes,
whiteLabelLogoUrls,
restoreWhiteLabelSettings,
} = common;
@ -320,10 +318,8 @@ export default inject(({ setup, auth, common }) => {
return {
theme: auth.settingsStore.theme,
logoText: whiteLabelLogoText,
logoSizes: whiteLabelLogoSizes,
logoUrls: whiteLabelLogoUrls,
getWhiteLabelLogoText,
getWhiteLabelLogoSizes,
getWhiteLabelLogoUrls,
setWhiteLabelSettings,
restoreWhiteLabelSettings,

View File

@ -4,7 +4,6 @@ import api from "@docspace/common/api";
class CommonStore {
whiteLabelLogoUrls = [];
whiteLabelLogoSizes = [];
whiteLabelLogoText = null;
isInit = false;
@ -38,7 +37,6 @@ class CommonStore {
authStore.settingsStore.getPortalCultures(),
this.getWhiteLabelLogoUrls(),
this.getWhiteLabelLogoText(),
this.getWhiteLabelLogoSizes(),
this.getGreetingSettingsIsDefault()
);
@ -53,10 +51,6 @@ class CommonStore {
this.whiteLabelLogoText = text;
};
setLogoSizes = (sizes) => {
this.whiteLabelLogoSizes = sizes;
};
restoreWhiteLabelSettings = async (isDefault) => {
const res = await api.settings.restoreWhiteLabelSettings(isDefault);
this.getWhiteLabelLogoUrls();
@ -76,11 +70,6 @@ class CommonStore {
this.setLogoText(res);
};
getWhiteLabelLogoSizes = async () => {
const res = await api.settings.getLogoSizes();
this.setLogoSizes(res);
};
setIsLoadedArticleBody = (isLoadedArticleBody) => {
this.isLoadedArticleBody = isLoadedArticleBody;
};