mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
Simplify DomainAdminStore, PackageAdminStore and PluginAdminStore
This commit is contained in:
parent
bde4d147bb
commit
0345050344
12 changed files with 96 additions and 94 deletions
|
|
@ -13,8 +13,6 @@ export class DomainsAdminSettings {
|
|||
constructor() {
|
||||
this.domains = DomainAdminStore;
|
||||
|
||||
this.visibility = ko.computed(() => (DomainAdminStore.loading() ? 'visible' : 'hidden'));
|
||||
|
||||
this.domainForDeletion = ko.observable(null).deleteAccessHelper();
|
||||
|
||||
this.onDomainListChangeRequest = this.onDomainListChangeRequest.bind(this);
|
||||
|
|
@ -45,7 +43,7 @@ export class DomainsAdminSettings {
|
|||
el && ko.dataFor(el) && Remote.domain(this.onDomainLoadRequest, ko.dataFor(el).name);
|
||||
});
|
||||
|
||||
rl.app.reloadDomainList();
|
||||
DomainAdminStore.fetch();
|
||||
}
|
||||
|
||||
onDomainLoadRequest(sResult, oData) {
|
||||
|
|
@ -55,6 +53,6 @@ export class DomainsAdminSettings {
|
|||
}
|
||||
|
||||
onDomainListChangeRequest() {
|
||||
rl.app.reloadDomainList();
|
||||
DomainAdminStore.fetch();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue