Merge branch 'feat/mailboxes' into feat/edit-after-alias-created

This commit is contained in:
Xuan Son Nguyen
2020-08-08 10:29:02 +02:00
committed by GitHub
+11 -1
View File
@@ -255,7 +255,17 @@ export default {
} else {
this.moreOptions.mailboxes.splice(i, 1);
}
this.hasMailboxesChanges = true;
// check if there are changes
const oldMailboxIds = this.alias.mailboxes
.map((mb) => mb.id)
.sort()
.join(",");
const newMailboxIds = this.moreOptions.mailboxes
.map((mb) => mb.id)
.sort()
.join(",");
this.hasMailboxesChanges = oldMailboxIds !== newMailboxIds;
},
},
};