1
0
Fork 0
mirror of synced 2024-07-19 13:15:49 +12:00

remove name selection from UI

This commit is contained in:
Peter Clement 2022-09-05 11:27:43 +01:00
parent 7948783982
commit cb4b918e5a
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,
}