now possible to navigate directly to a query

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-15 11:09:09 +01:00
parent 4f0aed0378
commit 3b4353bd6a
2 changed files with 11 additions and 11 deletions

View File

@ -1,15 +1,15 @@
<script>
// import { params } from "@sveltech/routify"
// import { backendUiStore } from "builderStore"
import { params } from "@sveltech/routify"
import { backendUiStore } from "builderStore"
// if ($params.selectedDatasource) {
// const datasource = $backendUiStore.datasources.find(
// m => m._id === $params.selectedDatasource
// )
// if (datasource) {
// backendUiStore.actions.datasources.select(datasource._id)
// }
// }
if ($params.query) {
const query = $backendUiStore.queries.find(
m => m._id === $params.query
)
if (query) {
backendUiStore.actions.queries.select(query)
}
}
</script>
<slot />

View File

@ -1,6 +1,6 @@
<script>
import { goto, beforeUrlChange } from "@sveltech/routify"
import { Button, Heading, Body, Spacer, Icon } from "@budibase/bbui"
import { Button, Heading, Body, Spacer } from "@budibase/bbui"
import { backendUiStore } from "builderStore"
import { notifier } from "builderStore/store/notifications"
import IntegrationConfigForm from "components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte"