diff --git a/frontend/src/api/account.js b/frontend/src/api/account.js
index c4a1289e8..e194857ce 100644
--- a/frontend/src/api/account.js
+++ b/frontend/src/api/account.js
@@ -28,5 +28,11 @@ export default {
},
resetRecoveryCodes () {
return repository.post(`${resource}/tfa/reset_codes/`)
+ },
+ getForward () {
+ return repository.get(`${resource}/forward/`)
+ },
+ setForward (data) {
+ return repository.post(`${resource}/forward/`, data)
}
}
diff --git a/frontend/src/components/identities/AccountCreationForm.vue b/frontend/src/components/identities/AccountCreationForm.vue
index 507f2dc8d..e22fb23c4 100644
--- a/frontend/src/components/identities/AccountCreationForm.vue
+++ b/frontend/src/components/identities/AccountCreationForm.vue
@@ -173,7 +173,11 @@ export default {
this.$emit('close')
},
submit () {
- accounts.create(this.account).then(resp => {
+ const data = { ...this.account }
+ if (this.account.role === 'SuperAdmins' && this.account.username.indexOf('@') === -1) {
+ delete data.mailbox
+ }
+ accounts.create(data).then(resp => {
bus.$emit('notification', { msg: this.$gettext('Account created') })
this.$emit('created')
this.close()
diff --git a/frontend/src/components/identities/AccountForm.vue b/frontend/src/components/identities/AccountForm.vue
index fda9b4dea..fbc056284 100644
--- a/frontend/src/components/identities/AccountForm.vue
+++ b/frontend/src/components/identities/AccountForm.vue
@@ -178,7 +178,7 @@ export default {
account: {
handler: function (val) {
if (val) {
- this.editedAccount = JSON.parse(JSON.stringify(val))
+ this.editedAccount = { ...val }
delete this.editedAccount.domains
if (this.editedAccount.mailbox === null) {
this.editedAccount.mailbox = {}
diff --git a/frontend/src/components/identities/AccountGeneralForm.vue b/frontend/src/components/identities/AccountGeneralForm.vue
index 61c44007a..4019e1817 100644
--- a/frontend/src/components/identities/AccountGeneralForm.vue
+++ b/frontend/src/components/identities/AccountGeneralForm.vue
@@ -3,7 +3,6 @@
diff --git a/frontend/src/components/layout/Navbar.vue b/frontend/src/components/layout/Navbar.vue
index f32a6295a..3a5c41b63 100644
--- a/frontend/src/components/layout/Navbar.vue
+++ b/frontend/src/components/layout/Navbar.vue
@@ -24,7 +24,7 @@
-
+