summaryrefslogtreecommitdiff
path: root/packages/frontend/src/ui/deck/notifications-column.vue
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2023-11-10 17:49:09 +0900
committerGitHub <noreply@github.com>2023-11-10 17:49:09 +0900
commit253c0c42e2871d3fe4ac959508bed5d93cd01b38 (patch)
tree12b6337b927d0354f868e8071f38cccff322a108 /packages/frontend/src/ui/deck/notifications-column.vue
parentaiscript-vscodeのバージョンを更新 (#12299) (diff)
downloadmisskey-253c0c42e2871d3fe4ac959508bed5d93cd01b38.tar.gz
misskey-253c0c42e2871d3fe4ac959508bed5d93cd01b38.tar.bz2
misskey-253c0c42e2871d3fe4ac959508bed5d93cd01b38.zip
デッキのカラムからリロードできる機能を追加 (#12274)
* デッキのカラムからリロードできる機能を追加 * tweak --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/ui/deck/notifications-column.vue')
-rw-r--r--packages/frontend/src/ui/deck/notifications-column.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/frontend/src/ui/deck/notifications-column.vue b/packages/frontend/src/ui/deck/notifications-column.vue
index b6bbf1fb55..770e8ea820 100644
--- a/packages/frontend/src/ui/deck/notifications-column.vue
+++ b/packages/frontend/src/ui/deck/notifications-column.vue
@@ -4,10 +4,10 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
-<XColumn :column="column" :isStacked="isStacked" :menu="menu">
+<XColumn :column="column" :isStacked="isStacked" :menu="menu" :refresher="() => notificationsComponent.reload()">
<template #header><i class="ti ti-bell" style="margin-right: 8px;"></i>{{ column.name }}</template>
- <XNotifications :excludeTypes="props.column.excludeTypes"/>
+ <XNotifications ref="notificationsComponent" :excludeTypes="props.column.excludeTypes"/>
</XColumn>
</template>
@@ -24,6 +24,8 @@ const props = defineProps<{
isStacked: boolean;
}>();
+let notificationsComponent = $shallowRef<InstanceType<typeof XNotifications>>();
+
function func() {
os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSelectWindow.vue')), {
excludeTypes: props.column.excludeTypes,