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