diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-09 16:00:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 16:00:29 +0900 |
| commit | 3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa (patch) | |
| tree | 3af53c7b8d5ecc5f0c21cbc5abec3ec5254606b0 /src/client/app/common/views | |
| parent | [Client] Fix bug (diff) | |
| download | misskey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.gz misskey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.bz2 misskey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.zip | |
Refactor client (#3178)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
Diffstat (limited to 'src/client/app/common/views')
5 files changed, 9 insertions, 9 deletions
diff --git a/src/client/app/common/views/components/api-settings.vue b/src/client/app/common/views/components/api-settings.vue index a6b74d7bb4..062218b3f4 100644 --- a/src/client/app/common/views/components/api-settings.vue +++ b/src/client/app/common/views/components/api-settings.vue @@ -50,7 +50,7 @@ export default Vue.extend({ methods: { regenerateToken() { - this.$root.apis.input({ + this.$input({ title: this.$t('enter-password'), type: 'password' }).then(password => { diff --git a/src/client/app/common/views/components/games/reversi/reversi.index.vue b/src/client/app/common/views/components/games/reversi/reversi.index.vue index e1372e5246..b82a60a360 100644 --- a/src/client/app/common/views/components/games/reversi/reversi.index.vue +++ b/src/client/app/common/views/components/games/reversi/reversi.index.vue @@ -100,7 +100,7 @@ export default Vue.extend({ }, match() { - this.$root.apis.input({ + this.$input({ title: this.$t('enter-username') }).then(username => { this.$root.api('users/show', { diff --git a/src/client/app/common/views/components/messaging-room.form.vue b/src/client/app/common/views/components/messaging-room.form.vue index d25c0c86db..97e2e16e4b 100644 --- a/src/client/app/common/views/components/messaging-room.form.vue +++ b/src/client/app/common/views/components/messaging-room.form.vue @@ -131,7 +131,7 @@ export default Vue.extend({ }, chooseFileFromDrive() { - this.$root.apis.chooseDriveFile({ + this.$chooseDriveFile({ multiple: false }).then(file => { this.file = file; diff --git a/src/client/app/common/views/components/password-settings.vue b/src/client/app/common/views/components/password-settings.vue index 048770401f..8661b51538 100644 --- a/src/client/app/common/views/components/password-settings.vue +++ b/src/client/app/common/views/components/password-settings.vue @@ -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')); }); }); }); diff --git a/src/client/app/common/views/widgets/slideshow.vue b/src/client/app/common/views/widgets/slideshow.vue index 58b19d0ab3..a454a41cde 100644 --- a/src/client/app/common/views/widgets/slideshow.vue +++ b/src/client/app/common/views/widgets/slideshow.vue @@ -114,7 +114,7 @@ export default define({ }); }, choose() { - this.$root.apis.chooseDriveFolder().then(folder => { + this.$chooseDriveFolder().then(folder => { this.props.folder = folder ? folder.id : null; this.save(); this.fetch(); |