@@ -11,6 +11,7 @@ const paramsSlice = createSlice({
1111 showModifiedParams : false ,
1212 fetchingVars : false ,
1313 fetchingVarsProgress : { progress : 0 , param_id : "" } ,
14+ fetchingParam : "" ,
1415 searchValue : "" ,
1516 hasFetchedOnce : false ,
1617 loadParamsFileModalOpen : false ,
@@ -56,6 +57,10 @@ const paramsSlice = createSlice({
5657 if ( action . payload === state . fetchingVarsProgress ) return
5758 state . fetchingVarsProgress = action . payload
5859 } ,
60+ setFetchingParam : ( state , action ) => {
61+ if ( action . payload === state . fetchingParam ) return
62+ state . fetchingParam = action . payload
63+ } ,
5964 setParamSearchValue : ( state , action ) => {
6065 if ( action . payload === state . searchValue ) return
6166 state . searchValue = action . payload
@@ -120,6 +125,7 @@ const paramsSlice = createSlice({
120125 resetParamState : ( state ) => {
121126 state . fetchingVars = false
122127 state . fetchingVarsProgress = { progress : 0 , param_id : "" }
128+ state . fetchingParam = ""
123129 state . params = [ ]
124130 state . shownParams = [ ]
125131 state . modifiedParams = [ ]
@@ -182,6 +188,7 @@ const paramsSlice = createSlice({
182188 selectShowModifiedParams : ( state ) => state . showModifiedParams ,
183189 selectFetchingVars : ( state ) => state . fetchingVars ,
184190 selectFetchingVarsProgress : ( state ) => state . fetchingVarsProgress ,
191+ selectFetchingParam : ( state ) => state . fetchingParam ,
185192 selectParamSearchValue : ( state ) => state . searchValue ,
186193 selectHasFetchedOnce : ( state ) => state . hasFetchedOnce ,
187194 selectLoadParamsFileModalOpen : ( state ) => state . loadParamsFileModalOpen ,
@@ -207,6 +214,7 @@ export const {
207214 setModifiedParams,
208215 setFetchingVars,
209216 setFetchingVarsProgress,
217+ setFetchingParam,
210218 setParamSearchValue,
211219 toggleShowModifiedParams,
212220 appendModifiedParams,
@@ -239,6 +247,7 @@ export const {
239247 selectModifiedParams,
240248 selectFetchingVars,
241249 selectFetchingVarsProgress,
250+ selectFetchingParam,
242251 selectShowModifiedParams,
243252 selectParamSearchValue,
244253 selectHasFetchedOnce,
0 commit comments