mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +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
|
|
@ -7,6 +7,8 @@ import Remote from 'Remote/Admin/Fetch';
|
|||
import { decorateKoCommands } from 'Knoin/Knoin';
|
||||
import { AbstractViewPopup } from 'Knoin/AbstractViews';
|
||||
|
||||
import { DomainAdminStore } from 'Stores/Admin/Domain';
|
||||
|
||||
class DomainPopupView extends AbstractViewPopup {
|
||||
constructor() {
|
||||
super('Domain');
|
||||
|
|
@ -250,7 +252,7 @@ class DomainPopupView extends AbstractViewPopup {
|
|||
this.saving(false);
|
||||
if (StorageResultType.Success === sResult && oData) {
|
||||
if (oData.Result) {
|
||||
rl.app.reloadDomainList();
|
||||
DomainAdminStore.fetch();
|
||||
this.closeCommand();
|
||||
} else if (Notification.DomainAlreadyExists === oData.ErrorCode) {
|
||||
this.savingError(i18n('ERRORS/DOMAIN_ALREADY_EXISTS'));
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class DomainAliasPopupView extends AbstractViewPopup {
|
|||
this.saving(false);
|
||||
if (StorageResultType.Success === result && data) {
|
||||
if (data.Result) {
|
||||
rl.app.reloadDomainList();
|
||||
DomainAdminStore.fetch();
|
||||
this.closeCommand();
|
||||
} else if (Notification.DomainAlreadyExists === data.ErrorCode) {
|
||||
this.savingError(i18n('ERRORS/DOMAIN_ALREADY_EXISTS'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue