Add feature flag to determine support for previewing on different device sizes

This commit is contained in:
Andrew Kingston 2021-09-08 09:46:20 +01:00
parent 4d06d682d8
commit acb289cc5f
3 changed files with 6 additions and 2 deletions

View File

@ -43,6 +43,7 @@ const INITIAL_FRONTEND_STATE = {
deviceAwareness: false,
state: false,
customThemes: false,
devicePreview: false,
},
currentFrontEndType: "none",
selectedScreenId: "",

View File

@ -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}

View File

@ -4,7 +4,8 @@
"intelligentLoading": true,
"deviceAwareness": true,
"state": true,
"customThemes": true
"customThemes": true,
"devicePreview": true
},
"layout": {
"name": "Layout",