mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-16 23:13:09 +02:00
0e4a111f81
Resolve #7779
53 lines
1.1 KiB
Vue
53 lines
1.1 KiB
Vue
<template>
|
|
<XColumn :column="column" :is-stacked="isStacked" :func="{ handler: func, title: $ts.notificationSetting }">
|
|
<template #header><i class="fas fa-bell" style="margin-right: 8px;"></i>{{ column.name }}</template>
|
|
|
|
<XNotifications :include-types="column.includingTypes"/>
|
|
</XColumn>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import XColumn from './column.vue';
|
|
import XNotifications from '@/components/notifications.vue';
|
|
import * as os from '@/os';
|
|
import { updateColumn } from './deck-store';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
XColumn,
|
|
XNotifications
|
|
},
|
|
|
|
props: {
|
|
column: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
isStacked: {
|
|
type: Boolean,
|
|
required: true
|
|
}
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
func() {
|
|
os.popup(import('@/components/notification-setting-window.vue'), {
|
|
includingTypes: this.column.includingTypes,
|
|
}, {
|
|
done: async (res) => {
|
|
const { includingTypes } = res;
|
|
updateColumn(this.column.id, {
|
|
includingTypes: includingTypes
|
|
});
|
|
},
|
|
}, 'closed');
|
|
}
|
|
}
|
|
});
|
|
</script>
|