mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
use action from store instead of directly modifying state in components
This commit is contained in:
@@ -392,6 +392,13 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} entry
|
||||
*/
|
||||
function appendNotificationTableEntry(entry) {
|
||||
notificationTable.value.data.push(entry);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param notificationId
|
||||
@@ -1474,6 +1481,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
isNotificationExpired,
|
||||
openNotificationLink,
|
||||
queueMarkAsSeen,
|
||||
markAllAsSeen
|
||||
markAllAsSeen,
|
||||
appendNotificationTableEntry
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user