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, deviceAwareness: false,
state: false, state: false,
customThemes: false, customThemes: false,
devicePreview: false,
}, },
currentFrontEndType: "none", currentFrontEndType: "none",
selectedScreenId: "", selectedScreenId: "",

View File

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

View File

@ -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",