summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/deck/deck.notifications.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common/views/deck/deck.notifications.vue')
-rw-r--r--src/client/app/common/views/deck/deck.notifications.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/app/common/views/deck/deck.notifications.vue b/src/client/app/common/views/deck/deck.notifications.vue
index e01d0023f6..aed2af64e9 100644
--- a/src/client/app/common/views/deck/deck.notifications.vue
+++ b/src/client/app/common/views/deck/deck.notifications.vue
@@ -47,12 +47,22 @@ export default Vue.extend({
}),
],
+ props: {
+ type: {
+ type: String,
+ required: false
+ }
+ },
+
data() {
return {
connection: null,
pagination: {
endpoint: 'i/notifications',
limit: 20,
+ params: () => ({
+ includeTypes: this.type ? [this.type] : undefined
+ })
}
};
},
@@ -69,6 +79,12 @@ export default Vue.extend({
}
},
+ watch: {
+ type() {
+ this.reload();
+ }
+ },
+
mounted() {
this.connection = this.$root.stream.useSharedConnection('main');
this.connection.on('notification', this.onNotification);