Show popover
This commit is contained in:
parent
9b6c8c74f3
commit
6d98424323
|
@ -1,13 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import DevicePreviewSelect from "./DevicePreviewSelect.svelte"
|
import DevicePreviewSelect from "./DevicePreviewSelect.svelte"
|
||||||
import AppPreview from "./AppPreview.svelte"
|
import AppPreview from "./AppPreview.svelte"
|
||||||
import {
|
import { screenStore, appStore } from "@/stores/builder"
|
||||||
screenStore,
|
|
||||||
appStore,
|
|
||||||
screenComponentErrorList,
|
|
||||||
} from "@/stores/builder"
|
|
||||||
import UndoRedoControl from "@/components/common/UndoRedoControl.svelte"
|
import UndoRedoControl from "@/components/common/UndoRedoControl.svelte"
|
||||||
import { ActionButton } from "@budibase/bbui"
|
import ScreenErrorsButton from "./ScreenErrorsButton.svelte"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="app-panel">
|
<div class="app-panel">
|
||||||
|
@ -21,9 +17,7 @@
|
||||||
<DevicePreviewSelect />
|
<DevicePreviewSelect />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<ActionButton selected quiet on:click={() => {}}
|
<ScreenErrorsButton />
|
||||||
>Errors ({$screenComponentErrorList.length})</ActionButton
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import { screenComponentErrorList } from "@/stores/builder"
|
||||||
|
import { ActionButton, Popover } from "@budibase/bbui"
|
||||||
|
|
||||||
|
let button: any
|
||||||
|
let popover: any
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div bind:this={button}>
|
||||||
|
<ActionButton selected quiet on:click={() => popover.show()}
|
||||||
|
>Errors ({$screenComponentErrorList.length})</ActionButton
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<Popover bind:this={popover} anchor={button} align={"right"}>TODO</Popover>
|
Loading…
Reference in New Issue