(state, modal)
| 5 | }, |
| 6 | mutations: { |
| 7 | addModal (state, modal) { |
| 8 | const index = state.modals.findIndex(m => m.name === modal.name) |
| 9 | if (index === -1) { |
| 10 | state.modals.push(modal) |
| 11 | state.modals.sort((a, b) => b.priority - a.priority) |
| 12 | } |
| 13 | }, |
| 14 | removeModal (state, modalName) { |
| 15 | const index = state.modals.findIndex(m => m.name === modalName) |
| 16 | if (index !== -1) { |
nothing calls this directly
no outgoing calls
no test coverage detected