Add feature flag to determine support for previewing on different device sizes
This commit is contained in:
parent
4d06d682d8
commit
acb289cc5f
|
@ -43,6 +43,7 @@ const INITIAL_FRONTEND_STATE = {
|
|||
deviceAwareness: false,
|
||||
state: false,
|
||||
customThemes: false,
|
||||
devicePreview: false,
|
||||
},
|
||||
currentFrontEndType: "none",
|
||||
selectedScreenId: "",
|
||||
|
|
|
@ -152,7 +152,9 @@
|
|||
{#if $currentAsset}
|
||||
<div class="preview-header">
|
||||
<ComponentSelectionList />
|
||||
<DevicePreviewSelect />
|
||||
{#if $store.clientFeatures.devicePreview}
|
||||
<DevicePreviewSelect />
|
||||
{/if}
|
||||
{#if $store.clientFeatures.customThemes}
|
||||
<ThemeEditor />
|
||||
{:else if $store.clientFeatures.spectrumThemes}
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"intelligentLoading": true,
|
||||
"deviceAwareness": true,
|
||||
"state": true,
|
||||
"customThemes": true
|
||||
"customThemes": true,
|
||||
"devicePreview": true
|
||||
},
|
||||
"layout": {
|
||||
"name": "Layout",
|
||||
|
|
Loading…
Reference in New Issue