({ commit })
| 22 | |
| 23 | actions: { |
| 24 | async fetchTints ({ commit }) { |
| 25 | commit('toggleLoading') |
| 26 | try { |
| 27 | const tints = await getAllTints() |
| 28 | commit('addTints', tints) |
| 29 | } catch (e) { |
| 30 | // TODO handle_error_ozaria |
| 31 | noty({ text: 'Fetch tints failure', type: 'error' }) |
| 32 | commit('toggleLoading') |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | } |
nothing calls this directly
no test coverage detected