diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-02 20:10:53 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-02 20:10:53 +0900 |
| commit | 165397739266f154a9b32b4265ef8939c7bdb4aa (patch) | |
| tree | 760b3bbbc693cbd09f7c00d4f68966d02ebe4652 /src/client/app/mobile/views | |
| parent | No MFM parsing when remote note (#3470) (diff) | |
| download | misskey-165397739266f154a9b32b4265ef8939c7bdb4aa.tar.gz misskey-165397739266f154a9b32b4265ef8939c7bdb4aa.tar.bz2 misskey-165397739266f154a9b32b4265ef8939c7bdb4aa.zip | |
Improve input dialog
Diffstat (limited to 'src/client/app/mobile/views')
| -rw-r--r-- | src/client/app/mobile/views/pages/notifications.vue | 4 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/user-lists.vue | 6 | ||||
| -rw-r--r-- | src/client/app/mobile/views/pages/user.vue | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/client/app/mobile/views/pages/notifications.vue b/src/client/app/mobile/views/pages/notifications.vue index a7271162d1..69f7b902c8 100644 --- a/src/client/app/mobile/views/pages/notifications.vue +++ b/src/client/app/mobile/views/pages/notifications.vue @@ -27,8 +27,8 @@ export default Vue.extend({ type: 'warning', text: this.$t('read-all'), showCancelButton: true - }).then(res => { - if (!res) return; + }).then(({ canceled }) => { + if (canceled) return; this.$root.api('notifications/mark_all_as_read'); }); diff --git a/src/client/app/mobile/views/pages/user-lists.vue b/src/client/app/mobile/views/pages/user-lists.vue index 2222a22487..dc9d47de3c 100644 --- a/src/client/app/mobile/views/pages/user-lists.vue +++ b/src/client/app/mobile/views/pages/user-lists.vue @@ -38,9 +38,11 @@ export default Vue.extend({ }, methods: { fn() { - this.$input({ + this.$root.dialog({ title: this.$t('enter-list-name'), - }).then(async title => { + input: true + }).then(async ({ canceled, result: title }) => { + if (canceled) return; const list = await this.$root.api('users/lists/create', { title }); diff --git a/src/client/app/mobile/views/pages/user.vue b/src/client/app/mobile/views/pages/user.vue index afef398acf..15c5fbb9ad 100644 --- a/src/client/app/mobile/views/pages/user.vue +++ b/src/client/app/mobile/views/pages/user.vue @@ -120,7 +120,7 @@ export default Vue.extend({ text: this.$t('push-to-list'), action: async () => { const lists = await this.$root.api('users/lists/list'); - const listId = await this.$root.dialog({ + const { canceled, result: listId } = await this.$root.dialog({ type: null, title: this.$t('select-list'), select: { @@ -130,7 +130,7 @@ export default Vue.extend({ }, showCancelButton: true }); - if (!listId) return; + if (canceled) return; await this.$root.api('users/lists/push', { listId: listId, userId: this.user.id |