mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
Cleanup more iError && data.Result
This commit is contained in:
parent
87bee226b4
commit
ce74b2e92f
19 changed files with 78 additions and 100 deletions
|
|
@ -10,31 +10,23 @@ export class BrandingAdminSettings {
|
|||
this.title = ko.observable(SettingsGet('Title')).idleTrigger();
|
||||
this.loadingDesc = ko.observable(SettingsGet('LoadingDescription')).idleTrigger();
|
||||
this.faviconUrl = ko.observable(SettingsGet('FaviconUrl')).idleTrigger();
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
setTimeout(() => {
|
||||
const f1 = settingsSaveHelperSimpleFunction(this.title.trigger, this),
|
||||
f2 = settingsSaveHelperSimpleFunction(this.loadingDesc.trigger, this),
|
||||
f3 = settingsSaveHelperSimpleFunction(this.faviconUrl.trigger, this);
|
||||
this.title.subscribe(value =>
|
||||
Remote.saveAdminConfig(settingsSaveHelperSimpleFunction(this.title.trigger, this), {
|
||||
'Title': value.trim()
|
||||
})
|
||||
);
|
||||
|
||||
this.title.subscribe((value) => {
|
||||
Remote.saveAdminConfig(f1, {
|
||||
'Title': value.trim()
|
||||
});
|
||||
});
|
||||
this.loadingDesc.subscribe(value =>
|
||||
Remote.saveAdminConfig(settingsSaveHelperSimpleFunction(this.loadingDesc.trigger, this), {
|
||||
'LoadingDescription': value.trim()
|
||||
})
|
||||
);
|
||||
|
||||
this.loadingDesc.subscribe((value) => {
|
||||
Remote.saveAdminConfig(f2, {
|
||||
'LoadingDescription': value.trim()
|
||||
});
|
||||
});
|
||||
|
||||
this.faviconUrl.subscribe((value) => {
|
||||
Remote.saveAdminConfig(f3, {
|
||||
'FaviconUrl': value.trim()
|
||||
});
|
||||
});
|
||||
}, 50);
|
||||
this.faviconUrl.subscribe(value =>
|
||||
Remote.saveAdminConfig(settingsSaveHelperSimpleFunction(this.faviconUrl.trigger, this), {
|
||||
'FaviconUrl': value.trim()
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue