diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-07-28 04:44:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-28 04:44:09 +0900 |
| commit | 4277e5343349c6000e626c490578d4e9bef71404 (patch) | |
| tree | 15a4a237810025e50fd5f2378744894357486e6b /src/client/app/desktop/views/components | |
| parent | Fix: リンクバリデーションリンクが一瞬表示されてしまう... (diff) | |
| download | misskey-4277e5343349c6000e626c490578d4e9bef71404.tar.gz misskey-4277e5343349c6000e626c490578d4e9bef71404.tar.bz2 misskey-4277e5343349c6000e626c490578d4e9bef71404.zip | |
通知のフィルタ (#5224)
* :v:
* Deck
Diffstat (limited to 'src/client/app/desktop/views/components')
| -rw-r--r-- | src/client/app/desktop/views/components/notifications.vue | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/app/desktop/views/components/notifications.vue b/src/client/app/desktop/views/components/notifications.vue index b25f122e0e..0238587034 100644 --- a/src/client/app/desktop/views/components/notifications.vue +++ b/src/client/app/desktop/views/components/notifications.vue @@ -153,6 +153,13 @@ export default Vue.extend({ paging({}), ], + props: { + type: { + type: String, + required: false + } + }, + data() { return { connection: null, @@ -160,6 +167,9 @@ export default Vue.extend({ pagination: { endpoint: 'i/notifications', limit: 10, + params: () => ({ + includeTypes: this.type ? [this.type] : undefined + }) } }; }, @@ -176,6 +186,12 @@ export default Vue.extend({ } }, + watch: { + type() { + this.reload(); + } + }, + mounted() { this.connection = this.$root.stream.useSharedConnection('main'); this.connection.on('notification', this.onNotification); |