Skip to content

Commit

Permalink
Merge pull request rancher#12098 from rak-phillip/bugfix/12097-dismis…
Browse files Browse the repository at this point in the history
…s-growl

Mutate growl stack in a reactive way
  • Loading branch information
rak-phillip authored Oct 3, 2024
2 parents bfb5422 + 5a5f6bf commit 4d56dd4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions shell/store/growl.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ export const getters = {

export const mutations = {
add(state, data) {
state.stack.push({
id: state.nextId++,
started: (new Date().getTime()),
...data
});
state.stack = [
...state.stack,
{
id: state.nextId++,
started: (new Date().getTime()),
...data
}
];
},

remove(state, id) {
Expand Down

0 comments on commit 4d56dd4

Please sign in to comment.