more remix replacements

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-23 12:34:56 +02:00
parent c8d6e230c6
commit 3ac72ec42b
1 changed files with 12 additions and 14 deletions

View File

@ -2,7 +2,7 @@
import { store } from "builderStore" import { store } 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, Modal, ModalContent, Input } from "@budibase/bbui" import { Icon, Popover, Modal, ModalContent, Input } from "@budibase/bbui"
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
import { cloneDeep } from "lodash/fp" import { cloneDeep } from "lodash/fp"
@ -35,42 +35,40 @@
} }
</script> </script>
<div bind:this={anchor} on:click|stopPropagation> <div bind:this={anchor}>
<div class="icon" on:click={() => dropdown.show()}> <div class="icon" on:click={() => dropdown.show()}>
<i class="ri-more-line" /> <Icon name="MoreSmallList" />
</div> </div>
<Popover bind:this={dropdown} {anchor} align="left"> <Popover bind:this={dropdown} {anchor} align="left">
<DropdownContainer> <DropdownContainer>
<DropdownItem <DropdownItem
icon="ri-pencil-line" icon="ri-pencil-line"
title="Edit" title="Edit"
on:click={() => editLayoutNameModal.show()} /> on:click={() => editLayoutNameModal.show()}
/>
<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 layout?'} body={"Are you sure you wish to delete this layout?"}
okText="Delete Layout" okText="Delete Layout"
onOk={deleteLayout} /> onOk={deleteLayout}
/>
<Modal bind:this={editLayoutNameModal}> <Modal bind:this={editLayoutNameModal}>
<ModalContent <ModalContent
title="Edit Layout Name" title="Edit Layout Name"
confirmText="Save" confirmText="Save"
onConfirm={saveLayout} onConfirm={saveLayout}
disabled={!name}> disabled={!name}
>
<Input thin type="text" label="Name" bind:value={name} /> <Input thin type="text" label="Name" bind:value={name} />
</ModalContent> </ModalContent>
</Modal> </Modal>
<style>
.icon i {
font-size: 16px;
}
</style>