From 7a2ef04ec31c3ff02de3d45c94afeb3da34c670b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 14 Nov 2018 20:36:15 +0900 Subject: [Client] Improve UI --- src/client/app/mobile/views/pages/notifications.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/client/app/mobile') diff --git a/src/client/app/mobile/views/pages/notifications.vue b/src/client/app/mobile/views/pages/notifications.vue index 97fe995535..b64e86d688 100644 --- a/src/client/app/mobile/views/pages/notifications.vue +++ b/src/client/app/mobile/views/pages/notifications.vue @@ -23,10 +23,15 @@ export default Vue.extend({ }, methods: { fn() { - const ok = window.confirm(this.$t('read-all')); - if (!ok) return; - - this.$root.api('notifications/mark_all_as_read'); + this.$root.alert({ + type: 'warning', + text: this.$t('read-all'), + showCancelButton: true + }).then(res => { + if (!res) return; + + this.$root.api('notifications/mark_all_as_read'); + }); }, onFetched() { Progress.done(); -- cgit v1.2.3-freya