2020-07-11 10:13:11 +09:00
|
|
|
<template>
|
2022-03-21 03:11:14 +09:00
|
|
|
<XColumn :column="column" :is-stacked="isStacked" :func="{ handler: func, title: $ts.notificationSetting }" @parent-focus="$event => emit('parent-focus', $event)">
|
2021-04-20 23:22:59 +09:00
|
|
|
<template #header><i class="fas fa-bell" style="margin-right: 8px;"></i>{{ column.name }}</template>
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
<XNotifications :include-types="column.includingTypes"/>
|
|
|
|
</XColumn>
|
2020-07-11 10:13:11 +09:00
|
|
|
</template>
|
|
|
|
|
2022-03-21 03:11:14 +09:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2020-07-11 10:13:11 +09:00
|
|
|
import XColumn from './column.vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import XNotifications from '@/components/notifications.vue';
|
|
|
|
import * as os from '@/os';
|
2020-12-19 10:55:52 +09:00
|
|
|
import { updateColumn } from './deck-store';
|
2022-03-21 03:11:14 +09:00
|
|
|
import { Column } from './deck-store';
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-03-21 03:11:14 +09:00
|
|
|
const props = defineProps<{
|
|
|
|
column: Column;
|
|
|
|
isStacked: boolean;
|
|
|
|
}>();
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-03-21 03:11:14 +09:00
|
|
|
const emit = defineEmits<{
|
|
|
|
(e: 'parent-focus', direction: 'up' | 'down' | 'left' | 'right'): void;
|
|
|
|
}>();
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-03-21 03:11:14 +09:00
|
|
|
function func() {
|
|
|
|
os.popup(import('@/components/notification-setting-window.vue'), {
|
|
|
|
includingTypes: props.column.includingTypes,
|
|
|
|
}, {
|
|
|
|
done: async (res) => {
|
|
|
|
const { includingTypes } = res;
|
|
|
|
updateColumn(props.column.id, {
|
|
|
|
includingTypes: includingTypes
|
|
|
|
});
|
|
|
|
},
|
|
|
|
}, 'closed');
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
</script>
|