Setup datasource type
This commit is contained in:
parent
9ccc54773d
commit
82ea9a7cc1
|
@ -3,11 +3,17 @@
|
||||||
import { Grid } from "@budibase/frontend-core"
|
import { Grid } from "@budibase/frontend-core"
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
|
|
||||||
$: tableId = $views.selected?.id
|
export let id
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<Grid {API} {tableId} datasourceType="view" showAvatars={false} />
|
<Grid
|
||||||
|
{API}
|
||||||
|
tableId={id}
|
||||||
|
datasourceType="viewV2"
|
||||||
|
showAvatars={false}
|
||||||
|
showControls={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
|
@ -60,7 +60,6 @@ export const deriveStores = context => {
|
||||||
loading,
|
loading,
|
||||||
sort,
|
sort,
|
||||||
tableId,
|
tableId,
|
||||||
datasourceType,
|
|
||||||
API,
|
API,
|
||||||
scroll,
|
scroll,
|
||||||
validation,
|
validation,
|
||||||
|
@ -72,6 +71,7 @@ export const deriveStores = context => {
|
||||||
hasNextPage,
|
hasNextPage,
|
||||||
error,
|
error,
|
||||||
notifications,
|
notifications,
|
||||||
|
props,
|
||||||
} = context
|
} = context
|
||||||
const instanceLoaded = writable(false)
|
const instanceLoaded = writable(false)
|
||||||
const fetch = writable(null)
|
const fetch = writable(null)
|
||||||
|
@ -112,7 +112,7 @@ export const deriveStores = context => {
|
||||||
const newFetch = fetchData({
|
const newFetch = fetchData({
|
||||||
API,
|
API,
|
||||||
datasource: {
|
datasource: {
|
||||||
type: datasourceType,
|
type: props.datasourceType,
|
||||||
tableId: $tableId,
|
tableId: $tableId,
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
|
Loading…
Reference in New Issue