Remove secondary action
This commit is contained in:
parent
2b2b252900
commit
7be824b2e6
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
// kill the reference so the input isn't saved
|
// kill the reference so the input isn't saved
|
||||||
let datasource = cloneDeep(integration)
|
let datasource = cloneDeep(integration)
|
||||||
let skipFetch = false
|
|
||||||
let isValid = false
|
let isValid = false
|
||||||
|
|
||||||
$: name =
|
$: name =
|
||||||
|
@ -47,7 +46,7 @@
|
||||||
if (!datasource.name) {
|
if (!datasource.name) {
|
||||||
datasource.name = name
|
datasource.name = name
|
||||||
}
|
}
|
||||||
const resp = await save(datasource, skipFetch)
|
const resp = await save(datasource)
|
||||||
$goto(`./datasource/${resp._id}`)
|
$goto(`./datasource/${resp._id}`)
|
||||||
notifications.success(`Datasource updated successfully.`)
|
notifications.success(`Datasource updated successfully.`)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -56,10 +55,6 @@
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
|
||||||
skipFetch = false
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ModalContent
|
<ModalContent
|
||||||
|
@ -69,11 +64,6 @@
|
||||||
confirmText={datasource.plus ? "Connect" : "Save and continue to query"}
|
confirmText={datasource.plus ? "Connect" : "Save and continue to query"}
|
||||||
cancelText="Back"
|
cancelText="Back"
|
||||||
showSecondaryButton={datasource.plus}
|
showSecondaryButton={datasource.plus}
|
||||||
secondaryAction={() => {
|
|
||||||
skipFetch = true
|
|
||||||
saveDatasource()
|
|
||||||
return true
|
|
||||||
}}
|
|
||||||
size="L"
|
size="L"
|
||||||
disabled={!isValid}
|
disabled={!isValid}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue