[web] Remove notification identifier

This commit is contained in:
Alain Nussbaumer 2025-03-25 21:21:30 +01:00
parent 582074e8ff
commit e7fcf7dd80
2 changed files with 3 additions and 4 deletions

View File

@ -3,8 +3,8 @@
<div class="columns is-centered">
<div class="column is-half">
<div
v-for="notification in notificationsStore.list"
:key="notification.id"
v-for="(notification, index) in notificationsStore.list"
:key="index"
class="notification"
:class="notification.type ? `is-${notification.type}` : ''"
>

View File

@ -4,7 +4,6 @@ export const useNotificationsStore = defineStore('NotificationsStore', {
actions: {
add(notification) {
const newNotification = {
id: this.nextId++,
text: notification.text,
timeout: notification.timeout,
topic: notification.topic,
@ -36,5 +35,5 @@ export const useNotificationsStore = defineStore('NotificationsStore', {
getters: {
isEmpty: (state) => state.list.length <= 0
},
state: () => ({ list: [], nextId: 1 })
state: () => ({ list: [] })
})