switch out remix icon

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-23 14:06:42 +02:00
parent 135b3acbf3
commit d6f238d116
1 changed files with 8 additions and 6 deletions

View File

@ -3,7 +3,7 @@
import { store, allScreens } from "builderStore" import { store, allScreens } from "builderStore"
import { notifications } from "@budibase/bbui" import { notifications } from "@budibase/bbui"
import ConfirmDialog from "components/common/ConfirmDialog.svelte" import ConfirmDialog from "components/common/ConfirmDialog.svelte"
import { Popover } from "@budibase/bbui" import { Icon, Popover } from "@budibase/bbui"
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
export let screenId export let screenId
@ -12,7 +12,7 @@
let dropdown let dropdown
let anchor let anchor
$: screen = $allScreens.find(screen => screen._id === screenId) $: screen = $allScreens.find((screen) => screen._id === screenId)
const deleteScreen = () => { const deleteScreen = () => {
try { try {
@ -29,23 +29,25 @@
<div bind:this={anchor} on:click|stopPropagation> <div bind:this={anchor} on:click|stopPropagation>
<div class="icon" on:click={() => dropdown.show()}> <div class="icon" on:click={() => dropdown.show()}>
<i class="ri-more-line" /> <Icon s hoverable name="MoreSmallList" />
</div> </div>
<Popover bind:this={dropdown} {anchor} align="left"> <Popover bind:this={dropdown} {anchor} align="left">
<DropdownContainer> <DropdownContainer>
<DropdownItem <DropdownItem
icon="ri-delete-bin-line" icon="ri-delete-bin-line"
title="Delete" title="Delete"
on:click={() => confirmDeleteDialog.show()} /> on:click={() => confirmDeleteDialog.show()}
/>
</DropdownContainer> </DropdownContainer>
</Popover> </Popover>
</div> </div>
<ConfirmDialog <ConfirmDialog
bind:this={confirmDeleteDialog} bind:this={confirmDeleteDialog}
title="Confirm Deletion" title="Confirm Deletion"
body={'Are you sure you wish to delete this screen?'} body={"Are you sure you wish to delete this screen?"}
okText="Delete Screen" okText="Delete Screen"
onOk={deleteScreen} /> onOk={deleteScreen}
/>
<style> <style>
.icon i { .icon i {