summaryrefslogtreecommitdiff
path: root/src/client/app/mobile
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-14 20:36:15 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-14 20:36:15 +0900
commit7a2ef04ec31c3ff02de3d45c94afeb3da34c670b (patch)
tree37e30abdf77b21f4dbfba92a8a5c3ccc5ac5dda9 /src/client/app/mobile
parent10.49.5 (diff)
downloadmisskey-7a2ef04ec31c3ff02de3d45c94afeb3da34c670b.tar.gz
misskey-7a2ef04ec31c3ff02de3d45c94afeb3da34c670b.tar.bz2
misskey-7a2ef04ec31c3ff02de3d45c94afeb3da34c670b.zip
[Client] Improve UI
Diffstat (limited to 'src/client/app/mobile')
-rw-r--r--src/client/app/mobile/views/pages/notifications.vue11
1 files changed, 8 insertions, 3 deletions
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.alert({
+ type: 'warning',
+ text: this.$t('read-all'),
+ showCancelButton: true
+ }).then(res => {
+ if (!res) return;
- this.$root.api('notifications/mark_all_as_read');
+ this.$root.api('notifications/mark_all_as_read');
+ });
},
onFetched() {
Progress.done();