fix: databases table

This commit is contained in:
Torsten Dittmann
2025-03-18 21:11:08 +01:00
parent 9c2796a3dc
commit 024ace53b3
3 changed files with 2 additions and 4 deletions
@@ -37,7 +37,7 @@
},
keys: ['c'],
disabled: showCreate || isCreationDisabled || !$canWriteDatabases,
icon: 'plus',
icon: IconPlus,
group: 'databases',
rank: 10
}
@@ -16,9 +16,7 @@
import RelationshipsModal from './relationshipsModal.svelte';
import { attributes, collection, columns } from './store';
import type { ColumnType } from '$lib/helpers/types';
import { toLocaleDateTime } from '$lib/helpers/date';
import { Tooltip, Table, Button, Link } from '@appwrite.io/pink-svelte';
import { Tooltip, Table, Selector, Button, Link } from '@appwrite.io/pink-svelte';
import DualTimeView from '$lib/components/dualTimeView.svelte';
export let data: PageData;
@@ -5,7 +5,7 @@ import { writable } from 'svelte/store';
export const columns = writable<Column[]>(
isCloud
? [
{ id: '$id', title: 'Database ID', type: 'string', width: 150 },
{ id: '$id', title: 'Database ID', type: 'string', width: 200 },
{ id: 'name', title: 'Name', type: 'string', width: { min: 120 } },
{ id: 'backup', title: 'Backups', type: 'string', width: { min: 120 } },
{ id: '$createdAt', title: 'Created', type: 'datetime', width: { min: 120 } },