Refactor client (#3178)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
This commit is contained in:
syuilo
2018-11-09 16:00:29 +09:00
committed by GitHub
parent 5d882dc3df
commit 3f79c9ae49
52 changed files with 328 additions and 421 deletions

View File

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