forked from tsai/budibase
3 changed files with 34 additions and 5 deletions
@ -1,10 +1,17 @@ |
|||
<script> |
|||
import SettingsPanel from "components/design/settings/SettingsPanel.svelte" |
|||
import { Body, Layout } from "@budibase/bbui" |
|||
import { selectedComponent, selectedScreen, store } from "builderStore" |
|||
|
|||
$: componentDefinition = store.actions.components.getDefinition( |
|||
$selectedComponent?._component |
|||
) |
|||
$: isScreen = $selectedComponent?._id === $selectedScreen?.props._id |
|||
$: title = isScreen ? "Screen" : $selectedComponent?._instanceName |
|||
</script> |
|||
|
|||
<SettingsPanel title="Screen" icon="WebPage"> |
|||
<SettingsPanel {title} icon={componentDefinition?.icon}> |
|||
<Layout paddingX="L" paddingY="XL"> |
|||
<Body>The component you add will be placed inside Screen</Body> |
|||
<Body>The component you add will be placed inside {title}</Body> |
|||
</Layout> |
|||
</SettingsPanel> |
|||
|
|||
Loading…
Reference in new issue