1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00
This commit is contained in:
Dean 2023-05-15 10:17:55 +01:00
parent 00d2bc4f6d
commit 086fb05238

View file

@ -60,7 +60,7 @@
let queryStr = JSON.stringify(query) let queryStr = JSON.stringify(query)
$beforeUrlChange((event, targetRoute) => { $beforeUrlChange(event => {
const updated = JSON.stringify(query) const updated = JSON.stringify(query)
if (updated !== queryStr && !override) { if (updated !== queryStr && !override) {
@ -68,8 +68,6 @@
saveModal.show() saveModal.show()
return false return false
} else return true } else return true
return true
}) })
$: datasource = $datasources.list.find(ds => ds._id === query.datasourceId) $: datasource = $datasources.list.find(ds => ds._id === query.datasourceId)
@ -160,7 +158,7 @@
cancelText="Discard Changes" cancelText="Discard Changes"
size="L" size="L"
onConfirm={async () => { onConfirm={async () => {
const saveResponse = await saveQuery() await saveQuery()
override = true override = true
resumeNavigation() resumeNavigation()
}} }}
@ -271,7 +269,7 @@
cta cta
disabled={queryInvalid} disabled={queryInvalid}
on:click={async () => { on:click={async () => {
const saveResponse = await saveQuery() await saveQuery()
notifications.success(`Query saved successfully`) notifications.success(`Query saved successfully`)
// Go to the correct URL if we just created a new query // Go to the correct URL if we just created a new query
if (!query._rev) { if (!query._rev) {