Browse Source

lint

pull/993/head
Martin McKeaveney 5 years ago
parent
commit
d13883135b
  1. 14
      packages/builder/src/components/integration/QueryViewer.svelte
  2. 2
      packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte
  3. 7
      packages/builder/src/components/userInterface/TableViewFieldSelect.svelte
  4. 2
      packages/builder/src/components/userInterface/TableViewSelect.svelte

14
packages/builder/src/components/integration/QueryViewer.svelte

@ -91,11 +91,12 @@
data = json || []
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
}
}
notifier.success("Query executed successfully.")
@ -170,7 +171,12 @@
<Spacer medium />
<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
</Button>
<Button wide thin primary on:click={previewQuery}>Run</Button>

2
packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte

@ -15,7 +15,7 @@
components: $store.components,
screen: $currentAsset,
tables: $backendUiStore.tables,
queries: $backendUiStore.queries
queries: $backendUiStore.queries,
}).map(property => ({
...property,
category: property.type === "instance" ? "Component" : "Table",

7
packages/builder/src/components/userInterface/TableViewFieldSelect.svelte

@ -13,9 +13,10 @@
let options = []
$: table = componentInstance.datasource?.type === "table"
? tables.find(m => m._id === componentInstance.datasource.tableId)
: queries.find(query => query._id === componentInstance.datasource._id)
$: table =
componentInstance.datasource?.type === "table"
? tables.find(m => m._id === componentInstance.datasource.tableId)
: queries.find(query => query._id === componentInstance.datasource._id)
$: type = componentInstance.datasource.type

2
packages/builder/src/components/userInterface/TableViewSelect.svelte

@ -45,7 +45,7 @@
components: $store.components,
screen: $currentAsset,
tables: $backendUiStore.tables,
queries: $backendUiStore.queries
queries: $backendUiStore.queries,
})
$: queryBindableProperties = bindableProperties.map(property => ({

Loading…
Cancel
Save