summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/mobile/views')
-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();