forked from tsai/budibase
3 changed files with 34 additions and 5 deletions
@ -1,10 +1,17 @@ |
|||||
<script> |
<script> |
||||
import SettingsPanel from "components/design/settings/SettingsPanel.svelte" |
import SettingsPanel from "components/design/settings/SettingsPanel.svelte" |
||||
import { Body, Layout } from "@budibase/bbui" |
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> |
</script> |
||||
|
|
||||
<SettingsPanel title="Screen" icon="WebPage"> |
<SettingsPanel {title} icon={componentDefinition?.icon}> |
||||
<Layout paddingX="L" paddingY="XL"> |
<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> |
</Layout> |
||||
</SettingsPanel> |
</SettingsPanel> |
||||
|
|||||
Loading…
Reference in new issue