From e2843a5ce4ffc00470b92328cc1f4d77fde0438f Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 8 Dec 2018 06:18:37 +0900 Subject: Resolve #3537 (#3540) * Resolve #3537 * tune --- .../app/common/views/components/password-settings.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/app/common/views/components/password-settings.vue b/src/client/app/common/views/components/password-settings.vue index bcea32576f..eb511d6213 100644 --- a/src/client/app/common/views/components/password-settings.vue +++ b/src/client/app/common/views/components/password-settings.vue @@ -44,10 +44,18 @@ export default Vue.extend({ return; } this.$root.api('i/change_password', { - currentPasword: currentPassword, - newPassword: newPassword + currentPassword, + newPassword }).then(() => { - this.$notify(this.$t('changed')); + this.$root.dialog({ + type: 'success', + text: this.$t('changed') + }); + }).catch(() => { + this.$root.dialog({ + type: 'error', + text: this.$t('failed') + }); }); } } -- cgit v1.2.3-freya