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 4b30384549
commit e4817983a4
2 changed files with 11 additions and 11 deletions

View File

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

View File

@ -1,6 +1,6 @@
<script> <script>
import { goto, beforeUrlChange } from "@sveltech/routify" 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 { backendUiStore } from "builderStore"
import { notifier } from "builderStore/store/notifications" import { notifier } from "builderStore/store/notifications"
import IntegrationConfigForm from "components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte" import IntegrationConfigForm from "components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte"