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,
|
deviceAwareness: false,
|
||||||
state: false,
|
state: false,
|
||||||
customThemes: false,
|
customThemes: false,
|
||||||
|
devicePreview: false,
|
||||||
},
|
},
|
||||||
currentFrontEndType: "none",
|
currentFrontEndType: "none",
|
||||||
selectedScreenId: "",
|
selectedScreenId: "",
|
||||||
|
|
|
@ -152,7 +152,9 @@
|
||||||
{#if $currentAsset}
|
{#if $currentAsset}
|
||||||
<div class="preview-header">
|
<div class="preview-header">
|
||||||
<ComponentSelectionList />
|
<ComponentSelectionList />
|
||||||
|
{#if $store.clientFeatures.devicePreview}
|
||||||
<DevicePreviewSelect />
|
<DevicePreviewSelect />
|
||||||
|
{/if}
|
||||||
{#if $store.clientFeatures.customThemes}
|
{#if $store.clientFeatures.customThemes}
|
||||||
<ThemeEditor />
|
<ThemeEditor />
|
||||||
{:else if $store.clientFeatures.spectrumThemes}
|
{:else if $store.clientFeatures.spectrumThemes}
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
"intelligentLoading": true,
|
"intelligentLoading": true,
|
||||||
"deviceAwareness": true,
|
"deviceAwareness": true,
|
||||||
"state": true,
|
"state": true,
|
||||||
"customThemes": true
|
"customThemes": true,
|
||||||
|
"devicePreview": true
|
||||||
},
|
},
|
||||||
"layout": {
|
"layout": {
|
||||||
"name": "Layout",
|
"name": "Layout",
|
||||||
|
|
Loading…
Reference in New Issue