diff --git a/dashboard/src/views/NotificationsView.vue b/dashboard/src/views/NotificationsView.vue index 980753de0..9698c4e01 100644 --- a/dashboard/src/views/NotificationsView.vue +++ b/dashboard/src/views/NotificationsView.vue @@ -3,7 +3,7 @@ import { marked } from 'marked'; import { eachLimit } from 'async'; import { ref, onMounted, inject } from 'vue'; -import { Button } from '@cloudron/pankow'; +import { Button, ButtonGroup } from '@cloudron/pankow'; import { prettyDate } from '@cloudron/pankow/utils'; import NotificationsModel from '../models/NotificationsModel.js'; @@ -13,9 +13,10 @@ const busy = ref(true); const notifications = ref([]); const notificationsAllBusy = ref(false); const refreshNotifications = inject('refreshNotifications'); +const showAll = ref(true); async function refresh() { - const [error, result] = await notificationsModel.list(); + const [error, result] = await notificationsModel.list(showAll.value ? null : false); if (error) return console.error(error); notifications.value = result; @@ -71,31 +72,40 @@ onMounted(async () => {

Notifications - +
+ + + + + +

- -
-
-
- {{ notification.title }} -
{{ prettyDate(notification.creationTime) }}
-
- - -
-
-
+
+
+
+ {{ notification.title }} +
{{ prettyDate(notification.creationTime) }}
+ +
- +
+
+
+