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">
<slot />
</section>
{#if showCancelButton || showConfirmButton}
{#if showCancelButton || showConfirmButton || $$slots.footer}
<div
class="spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter"
>

View File

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

View File

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