mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-12 23:42:32 -04:00
[web] Remove notification identifier
This commit is contained in:
parent
582074e8ff
commit
e7fcf7dd80
@ -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}` : ''"
|
||||
>
|
||||
|
@ -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: [] })
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user