({state, commit, dispatch}, {selectedScript})
| 67 | namespaced: true, |
| 68 | actions: { |
| 69 | reloadScript({state, commit, dispatch}, {selectedScript}) { |
| 70 | dispatch('setConnection', null); |
| 71 | commit('RESET_CONFIG'); |
| 72 | |
| 73 | if (!isEmptyString(selectedScript)) { |
| 74 | commit('SET_LOADING', true); |
| 75 | reconnect(state, internalState, commit, dispatch, selectedScript); |
| 76 | } |
| 77 | }, |
| 78 | |
| 79 | reloadModel({state, commit, rootState}, {scriptName, parameterValues, clientModelId}) { |
| 80 | if (rootState.scripts.selectedScript === scriptName) { |
nothing calls this directly
no test coverage detected