now possible to navigate directly to a query
This commit is contained in:
parent
4b30384549
commit
e4817983a4
|
@ -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 />
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue