mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Changed: StorageResultType to error result code
This commit is contained in:
parent
be3ef15f8e
commit
4a8d516123
33 changed files with 257 additions and 302 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import ko from 'ko';
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
import { StorageResultType } from 'Common/Enums';
|
||||
|
||||
export const DomainAdminStore = ko.observableArray();
|
||||
|
||||
|
|
@ -8,9 +7,9 @@ DomainAdminStore.loading = ko.observable(false);
|
|||
|
||||
DomainAdminStore.fetch = () => {
|
||||
DomainAdminStore.loading(true);
|
||||
Remote.domainList((result, data) => {
|
||||
Remote.domainList((iError, data) => {
|
||||
DomainAdminStore.loading(false);
|
||||
if (StorageResultType.Success === result && data && data.Result) {
|
||||
if (!iError && data && data.Result) {
|
||||
DomainAdminStore(
|
||||
Object.entries(data.Result).map(([name, [enabled, alias]]) => ({
|
||||
name: name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue