This commit is contained in:
j3d1 2024-06-28 00:49:09 +02:00
parent 7083f4f7b7
commit 33d368b5f4
3 changed files with 32 additions and 23 deletions

View file

@ -1,22 +1,9 @@
<template>
<Table
:columns="['slug', 'name']"
:items="events"
:keyName="'slug'"
>
<template #actions="{ item }">
<div class="btn-group">
<button class="btn btn-secondary" @click.stop="changeEvent(item)">
<font-awesome-icon icon="archive"/>
use
</button>
<button class="btn btn-danger" @click.stop="">
<font-awesome-icon icon="trash"/>
delete
</button>
</div>
</template>
</Table>
<ul>
<li v-for="channel in userNotificationChannels" :key="channel.id">
{{ channel.name }}
</li>
</ul>
</template>
<script>
@ -26,8 +13,11 @@ import Table from '@/components/Table';
export default {
name: 'Notifications',
components: {Table},
computed: mapState(['events']),
methods: mapActions(['changeEvent']),
computed: mapState(['userNotificationChannels']),
methods: mapActions(['fetchUserNotificationChannels']),
mounted() {
this.fetchUserNotificationChannels();
}
};
</script>