Client: delete useless
This commit is contained in:
parent
248b2017ad
commit
1a06ea3787
@ -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,
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user