mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
[web] Remove notification identifier
This commit is contained in:
@@ -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: [] })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user