mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
parent
de3a658c64
commit
de16b72cc0
2 changed files with 12 additions and 3 deletions
|
@ -980,6 +980,7 @@ common/views/components/password-settings.vue:
|
||||||
enter-new-password-again: "もう一度新しいパスワードを入力してください"
|
enter-new-password-again: "もう一度新しいパスワードを入力してください"
|
||||||
not-match: "新しいパスワードが一致しません"
|
not-match: "新しいパスワードが一致しません"
|
||||||
changed: "パスワードを変更しました"
|
changed: "パスワードを変更しました"
|
||||||
|
failed: "パスワード変更に失敗しました"
|
||||||
|
|
||||||
desktop/views/components/sub-note-content.vue:
|
desktop/views/components/sub-note-content.vue:
|
||||||
private: "この投稿は非公開です"
|
private: "この投稿は非公開です"
|
||||||
|
|
|
@ -44,10 +44,18 @@ export default Vue.extend({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$root.api('i/change_password', {
|
this.$root.api('i/change_password', {
|
||||||
currentPasword: currentPassword,
|
currentPassword,
|
||||||
newPassword: newPassword
|
newPassword
|
||||||
}).then(() => {
|
}).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')
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue