mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 00:10:10 -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="columns is-centered">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
<div
|
<div
|
||||||
v-for="notification in notificationsStore.list"
|
v-for="(notification, index) in notificationsStore.list"
|
||||||
:key="notification.id"
|
:key="index"
|
||||||
class="notification"
|
class="notification"
|
||||||
:class="notification.type ? `is-${notification.type}` : ''"
|
:class="notification.type ? `is-${notification.type}` : ''"
|
||||||
>
|
>
|
||||||
|
@ -4,7 +4,6 @@ export const useNotificationsStore = defineStore('NotificationsStore', {
|
|||||||
actions: {
|
actions: {
|
||||||
add(notification) {
|
add(notification) {
|
||||||
const newNotification = {
|
const newNotification = {
|
||||||
id: this.nextId++,
|
|
||||||
text: notification.text,
|
text: notification.text,
|
||||||
timeout: notification.timeout,
|
timeout: notification.timeout,
|
||||||
topic: notification.topic,
|
topic: notification.topic,
|
||||||
@ -36,5 +35,5 @@ export const useNotificationsStore = defineStore('NotificationsStore', {
|
|||||||
getters: {
|
getters: {
|
||||||
isEmpty: (state) => state.list.length <= 0
|
isEmpty: (state) => state.list.length <= 0
|
||||||
},
|
},
|
||||||
state: () => ({ list: [], nextId: 1 })
|
state: () => ({ list: [] })
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user