Web:Studio:Removed from SettingsSetupStore common, setLogoText, setLogoSizes, setLogoUrls, getWhiteLabelLogoText, getWhiteLabelLogoSizes, getWhiteLabelLogoUrls.

This commit is contained in:
Vlada Gazizova 2022-04-29 12:26:11 +03:00
parent 74e8a1fcfd
commit 5ad9e2c23b

View File

@ -2,6 +2,7 @@ import api from "@appserver/common/api";
import { makeAutoObservable } from "mobx";
const { Filter } = api;
import SelectionStore from "./SelectionStore";
import CommonStore from "./CommonStore";
import authStore from "@appserver/common/store/AuthStore";
import { combineUrl } from "@appserver/common/utils";
import { AppServerConfig } from "@appserver/common/constants";
@ -12,13 +13,6 @@ class SettingsSetupStore {
authStore = null;
isInit = false;
common = {
whiteLabel: {
logoSizes: [],
logoText: null,
logoUrls: [],
},
};
security = {
accessRight: {
options: [],
@ -94,18 +88,6 @@ class SettingsSetupStore {
this.security.accessRight.filter = filter;
};
setLogoText = (text) => {
this.common.whiteLabel.logoText = text;
};
setLogoSizes = (sizes) => {
this.common.whiteLabel.logoSizes = sizes;
};
setLogoUrls = (urls) => {
this.common.whiteLabel.logoUrls = urls;
};
setConsumers = (consumers) => {
this.integration.consumers = consumers;
};
@ -211,21 +193,6 @@ class SettingsSetupStore {
this.setFilter(filterData);
};
getWhiteLabelLogoText = async () => {
const res = await api.settings.getLogoText();
this.setLogoText(res);
};
getWhiteLabelLogoSizes = async () => {
const res = await api.settings.getLogoSizes();
this.setLogoSizes(res);
};
getWhiteLabelLogoUrls = async () => {
const res = await api.settings.getLogoUrls();
this.setLogoUrls(Object.values(res));
};
setWhiteLabelSettings = async (data) => {
const response = await api.settings.setWhiteLabelSettings(data);
return Promise.resolve(response);