summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/deck/deck.notifications-column.vue
blob: c81c8b7733694e595c37ccc3344c5084c8da2e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
<x-column :name="name" :column="column" :is-stacked="isStacked">
	<template #header><fa :icon="['far', 'bell']"/>{{ name }}</template>

	<x-notifications/>
</x-column>
</template>

<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';
import XColumn from './deck.column.vue';
import XNotifications from './deck.notifications.vue';

export default Vue.extend({
	i18n: i18n(),
	components: {
		XColumn,
		XNotifications
	},

	props: {
		column: {
			type: Object,
			required: true
		},
		isStacked: {
			type: Boolean,
			required: true
		}
	},

	computed: {
		name(): string {
			if (this.column.name) return this.column.name;
			return this.$t('@deck.notifications');
		}
	},
});
</script>