1
0
Fork 0
mirror of synced 2024-08-09 07:08:01 +12:00

Remove secondary action

This commit is contained in:
Adria Navarro 2023-05-23 16:45:30 +02:00
parent 2b2b252900
commit 7be824b2e6

View file

@ -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}
> >