summaryrefslogtreecommitdiff
path: root/packages/frontend/src/widgets/WidgetNotifications.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-09-29 11:29:54 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-09-29 11:29:54 +0900
commitb9da1415a50f6036350c6453d4a681b58bf17d1e (patch)
tree06614d5be85f027890a969548ca816e6a36c8c78 /packages/frontend/src/widgets/WidgetNotifications.vue
parent.js (diff)
downloadsharkey-b9da1415a50f6036350c6453d4a681b58bf17d1e.tar.gz
sharkey-b9da1415a50f6036350c6453d4a681b58bf17d1e.tar.bz2
sharkey-b9da1415a50f6036350c6453d4a681b58bf17d1e.zip
feat: 通知の受信設定を強化
Diffstat (limited to 'packages/frontend/src/widgets/WidgetNotifications.vue')
-rw-r--r--packages/frontend/src/widgets/WidgetNotifications.vue14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/frontend/src/widgets/WidgetNotifications.vue b/packages/frontend/src/widgets/WidgetNotifications.vue
index def908362a..796578395f 100644
--- a/packages/frontend/src/widgets/WidgetNotifications.vue
+++ b/packages/frontend/src/widgets/WidgetNotifications.vue
@@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #func="{ buttonStyleClass }"><button class="_button" :class="buttonStyleClass" @click="configureNotification()"><i class="ti ti-settings"></i></button></template>
<div>
- <XNotifications :includeTypes="widgetProps.includingTypes"/>
+ <XNotifications :excludeTypes="widgetProps.excludeTypes"/>
</div>
</MkContainer>
</template>
@@ -35,10 +35,10 @@ const widgetPropsDef = {
type: 'number' as const,
default: 300,
},
- includingTypes: {
+ excludeTypes: {
type: 'array' as const,
hidden: true,
- default: null,
+ default: [],
},
};
@@ -54,12 +54,12 @@ const { widgetProps, configure, save } = useWidgetPropsManager(name,
);
const configureNotification = () => {
- os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSettingWindow.vue')), {
- includingTypes: widgetProps.includingTypes,
+ os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSelectWindow.vue')), {
+ excludeTypes: widgetProps.excludeTypes,
}, {
done: async (res) => {
- const { includingTypes } = res;
- widgetProps.includingTypes = includingTypes;
+ const { excludeTypes } = res;
+ widgetProps.excludeTypes = excludeTypes;
save();
},
}, 'closed');