Browse Source

Store client features in frontend store

pull/1953/head
Andrew Kingston 5 years ago
parent
commit
7040ee48f4
  1. 8
      packages/builder/src/builderStore/store/frontend.js

8
packages/builder/src/builderStore/store/frontend.js

@ -32,6 +32,10 @@ const INITIAL_FRONTEND_STATE = {
layouts: [],
screens: [],
components: [],
clientFeatures: {
spectrumThemes: false,
intelligentLoading: false,
},
currentFrontEndType: "none",
selectedScreenId: "",
selectedLayoutId: "",
@ -56,6 +60,10 @@ export const getFrontendStore = () => {
...state,
libraries: application.componentLibraries,
components,
clientFeatures: {
...state.clientFeatures,
...components.features,
},
name: application.name,
description: application.description,
appId: application.appId,

Loading…
Cancel
Save