1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

refactor how modal is handled

This commit is contained in:
Peter Clement 2021-12-08 18:52:06 +00:00
parent efb50f0050
commit ff7be5bbcd
3 changed files with 3 additions and 25 deletions

View file

@ -1,18 +1,9 @@
<script>
import {
Input,
ModalContent,
Body,
Modal,
Icon,
ColorPicker,
Label,
} from "@budibase/bbui"
import { ModalContent, Modal, Icon, ColorPicker, Label } from "@budibase/bbui"
import { apps } from "stores/portal"
export let app
let modal
let dirty
let selectedIcon
let selectedColor
@ -43,10 +34,6 @@
hide()
}
const onShow = () => {
dirty = false
}
const changeColor = val => {
selectedColor = val
}
@ -59,7 +46,7 @@
}
</script>
<Modal bind:this={modal} on:hide={onCancel} on:show={onShow}>
<Modal bind:this={modal} on:hide={onCancel}>
<ModalContent
title={"Edit Icon"}
confirmText={"Save"}

View file

@ -3,7 +3,7 @@
import { notifications, Input, ModalContent, Dropzone } from "@budibase/bbui"
import { store, automationStore, hostingStore } from "builderStore"
import { admin, auth, users } from "stores/portal"
import { admin, auth } from "stores/portal"
import { string, mixed, object } from "yup"
import api, { get, post } from "builderStore/api"
import analytics, { Events } from "analytics"

View file

@ -31,15 +31,6 @@
</Layout>
<style>
.templates {
display: grid;
width: 100%;
grid-gap: var(--spacing-m);
grid-template-columns: 1fr;
justify-content: start;
margin-top: 15px;
}
.background-icon {
padding: 10px;
border-radius: 4px;