fix: hide backups column on self-hosted

This commit is contained in:
Torsten Dittmann committed 2024-11-06 20:39:02 +01:00
1 parent 8c62c1ee48
commit ab7bd66fd6
1 file changed
+2 -1
@@ -1,10 +1,11 @@
import type { Column } from '$lib/helpers/types';
import { isCloud } from '$lib/system';
import { writable } from 'svelte/store';
export const columns = writable<Column[]>([
{ id: '$id', title: 'Database ID', type: 'string', show: true, width: 150 },
{ id: 'name', title: 'Name', type: 'string', show: true, width: 120 },
{ id: 'backup', title: 'Backups', type: 'string', show: true, width: 120 },
isCloud && { id: 'backup', title: 'Backups', type: 'string', show: true, width: 120 },
{ id: '$createdAt', title: 'Created', type: 'datetime', show: true, width: 120 },
{ id: '$updatedAt', title: 'Updated', type: 'datetime', show: true, width: 120 }
]);