summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-12-08 06:18:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-12-08 06:18:37 +0900
commite2843a5ce4ffc00470b92328cc1f4d77fde0438f (patch)
tree7eda008477b1e6c7f9c7b2e1238930dcbed06aec /src
parentApply tag length limit from AP (#3536) (diff)
downloadsharkey-e2843a5ce4ffc00470b92328cc1f4d77fde0438f.tar.gz
sharkey-e2843a5ce4ffc00470b92328cc1f4d77fde0438f.tar.bz2
sharkey-e2843a5ce4ffc00470b92328cc1f4d77fde0438f.zip
Resolve #3537 (#3540)
* Resolve #3537 * tune
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/password-settings.vue14
1 files changed, 11 insertions, 3 deletions
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')
+ });
});
}
}