diff --git a/src/lib/elements/table/index.ts b/src/lib/elements/table/index.ts index e67c95b54..b1f0d6082 100644 --- a/src/lib/elements/table/index.ts +++ b/src/lib/elements/table/index.ts @@ -1,4 +1,5 @@ export { default as Table } from './table.svelte'; +export { default as TableScroll } from './tableScroll.svelte'; export { default as TableBody } from './body.svelte'; export { default as TableHeader } from './header.svelte'; export { default as TableFooter } from './footer.svelte'; diff --git a/src/lib/elements/table/table.svelte b/src/lib/elements/table/table.svelte index 96354927a..465d4c8f9 100644 --- a/src/lib/elements/table/table.svelte +++ b/src/lib/elements/table/table.svelte @@ -1,7 +1,3 @@ - - -
+
diff --git a/src/lib/elements/table/tableScroll.svelte b/src/lib/elements/table/tableScroll.svelte new file mode 100644 index 000000000..77f37c60a --- /dev/null +++ b/src/lib/elements/table/tableScroll.svelte @@ -0,0 +1,7 @@ +
+
+
+ +
+
+
diff --git a/src/routes/console/[project]/databases/database/[database]/collection/[collection]/_create.svelte b/src/routes/console/[project]/databases/database/[database]/collection/[collection]/_create.svelte index 2805f0ad1..fc72762bd 100644 --- a/src/routes/console/[project]/databases/database/[database]/collection/[collection]/_create.svelte +++ b/src/routes/console/[project]/databases/database/[database]/collection/[collection]/_create.svelte @@ -10,8 +10,6 @@ import { addNotification } from '$lib/stores/notifications'; import Attribute from './document/[document]/_attribute.svelte'; - $: attributeList.load($page.params.collection); - export let showCreate = false; let newDocument = {}; @@ -63,6 +61,8 @@ } }; + $: attributeList.load($page.params.collection); + $: if (!showCreate) { initializeDocument(); currentStep = 0; diff --git a/src/routes/console/[project]/databases/database/[database]/collection/[collection]/index.svelte b/src/routes/console/[project]/databases/database/[database]/collection/[collection]/index.svelte index d73aaad5a..d8de70b50 100644 --- a/src/routes/console/[project]/databases/database/[database]/collection/[collection]/index.svelte +++ b/src/routes/console/[project]/databases/database/[database]/collection/[collection]/index.svelte @@ -1,7 +1,7 @@