Web:Common:Add docSpaceLogo, setDocSpaceLogo.
This commit is contained in:
parent
88c2edb243
commit
9b596d6932
@ -146,6 +146,7 @@ class SettingsStore {
|
|||||||
companyInfoSettingsData = null;
|
companyInfoSettingsData = null;
|
||||||
|
|
||||||
whiteLabelLogoUrls = [];
|
whiteLabelLogoUrls = [];
|
||||||
|
docSpaceLogo = "";
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
makeAutoObservable(this);
|
makeAutoObservable(this);
|
||||||
@ -392,6 +393,10 @@ class SettingsStore {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
setDocSpaceLogo = (urls) => {
|
||||||
|
this.docSpaceLogo = urls[1];
|
||||||
|
};
|
||||||
|
|
||||||
setLogoUrls = (urls) => {
|
setLogoUrls = (urls) => {
|
||||||
this.whiteLabelLogoUrls = urls;
|
this.whiteLabelLogoUrls = urls;
|
||||||
};
|
};
|
||||||
@ -419,7 +424,9 @@ class SettingsStore {
|
|||||||
|
|
||||||
getWhiteLabelLogoUrls = async () => {
|
getWhiteLabelLogoUrls = async () => {
|
||||||
const res = await api.settings.getLogoUrls();
|
const res = await api.settings.getLogoUrls();
|
||||||
|
|
||||||
this.setLogoUrls(Object.values(res));
|
this.setLogoUrls(Object.values(res));
|
||||||
|
this.setDocSpaceLogo(Object.values(res));
|
||||||
};
|
};
|
||||||
|
|
||||||
restoreCompanyInfoSettings = async () => {
|
restoreCompanyInfoSettings = async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user