|
|
@ -8,6 +8,7 @@ |
|
|
Button, |
|
|
Button, |
|
|
Toggle, |
|
|
Toggle, |
|
|
Checkbox, |
|
|
Checkbox, |
|
|
|
|
|
Banner, |
|
|
notifications, |
|
|
notifications, |
|
|
} from "@budibase/bbui" |
|
|
} from "@budibase/bbui" |
|
|
import PropertyControl from "components/design/settings/controls/PropertyControl.svelte" |
|
|
import PropertyControl from "components/design/settings/controls/PropertyControl.svelte" |
|
|
@ -128,6 +129,13 @@ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const removeCustomLayout = async () => { |
|
|
|
|
|
let screen = get(selectedScreen) |
|
|
|
|
|
screen.layoutId = null |
|
|
|
|
|
screen.showNavigation = true |
|
|
|
|
|
await store.actions.screens.save(screen) |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<SettingsPanel |
|
|
<SettingsPanel |
|
|
@ -135,6 +143,16 @@ |
|
|
icon={$selectedScreen.routing.route === "/" ? "Home" : "WebPage"} |
|
|
icon={$selectedScreen.routing.route === "/" ? "Home" : "WebPage"} |
|
|
> |
|
|
> |
|
|
<Layout gap="S" paddingX="L" paddingY="XL"> |
|
|
<Layout gap="S" paddingX="L" paddingY="XL"> |
|
|
|
|
|
{#if $selectedScreen.layoutId} |
|
|
|
|
|
<Banner |
|
|
|
|
|
type="warning" |
|
|
|
|
|
extraButtonText="Update" |
|
|
|
|
|
extraButtonAction={removeCustomLayout} |
|
|
|
|
|
showCloseButton={false} |
|
|
|
|
|
> |
|
|
|
|
|
This screen uses a custom layout, which is deprecated |
|
|
|
|
|
</Banner> |
|
|
|
|
|
{/if} |
|
|
{#each screenSettings as setting (setting.key)} |
|
|
{#each screenSettings as setting (setting.key)} |
|
|
<PropertyControl |
|
|
<PropertyControl |
|
|
control={setting.control} |
|
|
control={setting.control} |
|
|
|