({commit})
| 12 | namespaced: true, |
| 13 | actions: { |
| 14 | init({commit}) { |
| 15 | commit('SET_LOADING', true); |
| 16 | commit('SET_EXECUTION_DETAILS', {execution: null, id: null}); |
| 17 | |
| 18 | axiosInstance.get('history/execution_log/short').then(({data}) => { |
| 19 | sortExecutionLogs(data); |
| 20 | |
| 21 | let executions = data.map(log => translateExecutionLog(log)); |
| 22 | commit('SET_EXECUTIONS', executions); |
| 23 | commit('SET_LOADING', false); |
| 24 | }); |
| 25 | }, |
| 26 | |
| 27 | selectExecution({commit, state}, executionId) { |
| 28 | if (isEmptyString(executionId)) { |
nothing calls this directly
no test coverage detected