lint
This commit is contained in:
parent
133d93fbee
commit
4143718d70
|
@ -91,9 +91,10 @@
|
||||||
|
|
||||||
data = json || []
|
data = json || []
|
||||||
|
|
||||||
|
|
||||||
if (data.length === 0) {
|
if (data.length === 0) {
|
||||||
notifier.info("Query results empty. Please execute a query with results to create your schema.")
|
notifier.info(
|
||||||
|
"Query results empty. Please execute a query with results to create your schema."
|
||||||
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,7 +171,12 @@
|
||||||
<Spacer medium />
|
<Spacer medium />
|
||||||
|
|
||||||
<div class="viewer-controls">
|
<div class="viewer-controls">
|
||||||
<Button wide thin blue disabled={data.length === 0} on:click={saveQuery}>
|
<Button
|
||||||
|
wide
|
||||||
|
thin
|
||||||
|
blue
|
||||||
|
disabled={data.length === 0}
|
||||||
|
on:click={saveQuery}>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
<Button wide thin primary on:click={previewQuery}>Run</Button>
|
<Button wide thin primary on:click={previewQuery}>Run</Button>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
components: $store.components,
|
components: $store.components,
|
||||||
screen: $currentAsset,
|
screen: $currentAsset,
|
||||||
tables: $backendUiStore.tables,
|
tables: $backendUiStore.tables,
|
||||||
queries: $backendUiStore.queries
|
queries: $backendUiStore.queries,
|
||||||
}).map(property => ({
|
}).map(property => ({
|
||||||
...property,
|
...property,
|
||||||
category: property.type === "instance" ? "Component" : "Table",
|
category: property.type === "instance" ? "Component" : "Table",
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
|
|
||||||
let options = []
|
let options = []
|
||||||
|
|
||||||
$: table = componentInstance.datasource?.type === "table"
|
$: table =
|
||||||
|
componentInstance.datasource?.type === "table"
|
||||||
? tables.find(m => m._id === componentInstance.datasource.tableId)
|
? tables.find(m => m._id === componentInstance.datasource.tableId)
|
||||||
: queries.find(query => query._id === componentInstance.datasource._id)
|
: queries.find(query => query._id === componentInstance.datasource._id)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
components: $store.components,
|
components: $store.components,
|
||||||
screen: $currentAsset,
|
screen: $currentAsset,
|
||||||
tables: $backendUiStore.tables,
|
tables: $backendUiStore.tables,
|
||||||
queries: $backendUiStore.queries
|
queries: $backendUiStore.queries,
|
||||||
})
|
})
|
||||||
|
|
||||||
$: queryBindableProperties = bindableProperties.map(property => ({
|
$: queryBindableProperties = bindableProperties.map(property => ({
|
||||||
|
|
Loading…
Reference in New Issue