MCPcopy Create free account
hub / github.com/bugy/script-server / reloadModel

Function reloadModel

web-src/src/main-app/store/scriptSetup.js:98–111  ·  view source on GitHub ↗
({state, commit, dispatch}, {values, forceAllowedValues, scriptName})

Source from the content-addressed store, hash-verified

96 },
97
98 reloadModel({state, commit, dispatch}, {values, forceAllowedValues, scriptName}) {
99 commit('SET_FORCED_VALUE_PARAMETERS', []);
100
101 if (isEqual(state.parameterValues, values)) {
102 return
103 }
104
105 const clientModelId = guid(16)
106
107 commit('SET_VALUES', values)
108 commit('SET_NEXT_RELOAD_VALUES', {parameterValues: values, forceAllowedValues, scriptName, clientModelId});
109
110 dispatch('scriptConfig/reloadModel', {scriptName, parameterValues: values, clientModelId}, {root: true});
111 },
112
113 _setAndSendParameterValues({state, commit, dispatch}, values) {
114 commit('SET_VALUES', values);

Callers

nothing calls this directly

Calls 1

guidFunction · 0.90

Tested by

no test coverage detected