Lint
This commit is contained in:
parent
00d2bc4f6d
commit
086fb05238
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue