remove name selection from UI

This commit is contained in:
Peter Clement 2022-09-05 11:27:43 +01:00
parent 96ecf6726f
commit 43893d9fe4
4 changed files with 7 additions and 13 deletions

View File

@ -88,7 +88,7 @@
<section class="spectrum-Dialog-content content-grid"> <section class="spectrum-Dialog-content content-grid">
<slot /> <slot />
</section> </section>
{#if showCancelButton || showConfirmButton} {#if showCancelButton || showConfirmButton || $$slots.footer}
<div <div
class="spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter" class="spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter"
> >

View File

@ -92,6 +92,7 @@
<Label size="M">{option}</Label> <Label size="M">{option}</Label>
<Dropzone <Dropzone
gallery={false}
value={[file]} value={[file]}
on:change={e => { on:change={e => {
if (!e.detail || e.detail.length === 0) { if (!e.detail || e.detail.length === 0) {

View File

@ -8,9 +8,9 @@
Label, Label,
Input, Input,
} from "@budibase/bbui" } from "@budibase/bbui"
import { plugins } from "stores/portal"
export let plugin export let plugin
export let deletePlugin
let detailsModal let detailsModal
</script> </script>
@ -74,17 +74,11 @@
</div> </div>
<div class="footer" slot="footer"> <div class="footer" slot="footer">
<Button <Button newStyles on:click={() => deletePlugin(plugin)} warning
newStyles >Delete</Button
on:click={() => plugins.deletePlugin(plugin._id, plugin._rev)}
warning>Delete</Button
> >
<Button <Button newStyles>Update</Button>
newStyles
on:click={() => plugins.deletePlugin(plugin._id, plugin._rev)}
>Update</Button
>
<Button cta newStyles on:click={detailsModal.hide()}>Done</Button> <Button cta newStyles on:click={detailsModal.hide()}>Done</Button>
</div> </div>

View File

@ -17,11 +17,10 @@ export function createPluginsStore() {
}) })
} }
async function createPlugin(type, source, name, url, auth = null) { async function createPlugin(type, source, url, auth = null) {
let pluginData = { let pluginData = {
type, type,
source, source,
name,
url, url,
} }