mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Improved cache handling
This commit is contained in:
parent
29854311f9
commit
cf12960507
12 changed files with 153 additions and 145 deletions
|
|
@ -210,7 +210,15 @@ export class DomainPopupView extends AbstractViewPopup {
|
|||
createOrAddCommand() {
|
||||
this.saving(true);
|
||||
Remote.request('AdminDomainSave',
|
||||
this.onDomainCreateOrSaveResponse.bind(this),
|
||||
iError => {
|
||||
this.saving(false);
|
||||
if (iError) {
|
||||
this.savingError(getNotification(iError));
|
||||
} else {
|
||||
DomainAdminStore.fetch();
|
||||
this.close();
|
||||
}
|
||||
},
|
||||
Object.assign(domainToParams(this), {
|
||||
Create: this.edit() ? 0 : 1
|
||||
})
|
||||
|
|
@ -263,16 +271,6 @@ export class DomainPopupView extends AbstractViewPopup {
|
|||
});
|
||||
}
|
||||
|
||||
onDomainCreateOrSaveResponse(iError) {
|
||||
this.saving(false);
|
||||
if (iError) {
|
||||
this.savingError(getNotification(iError));
|
||||
} else {
|
||||
DomainAdminStore.fetch();
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
|
||||
clearTesting() {
|
||||
this.testing(false);
|
||||
this.testingDone(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue