summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-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')
+ });
});
}
}