jamespot-front-business 1.1.43 → 1.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm.js CHANGED
@@ -138,11 +138,13 @@ const animationsSlice = createSlice({
138
138
  });
139
139
  builder.addCase(toggleAnimationIsActive.pending, (state) => {
140
140
  state.isToggleLoading = true;
141
+ state.isActiveForCurrentUser = !state.isActiveForCurrentUser;
141
142
  });
142
143
  builder.addCase(toggleAnimationIsActive.fulfilled, (state) => {
143
144
  state.isToggleLoading = false;
144
145
  });
145
146
  builder.addCase(toggleAnimationIsActive.rejected, (state) => {
147
+ state.isActiveForCurrentUser = !state.isActiveForCurrentUser;
146
148
  state.isToggleLoading = false;
147
149
  });
148
150
  },
@@ -204,9 +206,15 @@ const selectAnimationConfigurationApp = (state) => state.animations.animationCon
204
206
  const animationsReducer = animationsSlice.reducer;
205
207
  const Animations = {
206
208
  slice: animationsSlice,
207
- actions: { saveCurrentAnimation, fetchCurrentAnimation, deleteCurrentAnimation, toggleAnimationIsActive, fetchCurrentAnimationApp },
209
+ actions: {
210
+ saveCurrentAnimation,
211
+ fetchCurrentAnimation,
212
+ deleteCurrentAnimation,
213
+ toggleAnimationIsActive,
214
+ fetchCurrentAnimationApp,
215
+ },
208
216
  selectors: { selectCurrentAnimation, isActiveAnimation, isToggleLoading, selectAnimationConfigurationApp },
209
- getAnimationsRTHandlers
217
+ getAnimationsRTHandlers,
210
218
  };
211
219
 
212
220
  const adapter$1 = createEntityAdapter({