[Client] Fix bug

This commit is contained in:
syuilo
2018-11-09 08:26:32 +09:00
parent 60ef3e3563
commit fccbecf159
44 changed files with 83 additions and 81 deletions

View File

@ -12,20 +12,20 @@ export default Vue.extend({
i18n: i18n('common/views/components/password-settings.vue'),
methods: {
reset() {
(this as any).apis.input({
this.$root.apis.input({
title: this.$t('enter-current-password'),
type: 'password'
}).then(currentPassword => {
(this as any).apis.input({
this.$root.apis.input({
title: this.$t('enter-new-password'),
type: 'password'
}).then(newPassword => {
(this as any).apis.input({
this.$root.apis.input({
title: this.$t('enter-new-password-again'),
type: 'password'
}).then(newPassword2 => {
if (newPassword !== newPassword2) {
(this as any).apis.dialog({
this.$root.apis.dialog({
title: null,
text: this.$t('not-match'),
actions: [{
@ -38,7 +38,7 @@ export default Vue.extend({
currentPasword: currentPassword,
newPassword: newPassword
}).then(() => {
(this as any).apis.notify(this.$t('changed'));
this.$root.apis.notify(this.$t('changed'));
});
});
});