now possible to navigate directly to a datasource

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-15 10:18:23 +01:00
parent 829affccea
commit 13bcde9062
2 changed files with 13 additions and 1183 deletions

View File

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

File diff suppressed because it is too large Load Diff