fix(migration): add Status column back to DashboardDataGrid
Restored the Status column (published/draft badge) that was dropped during the DashboardGrid→DashboardDataGrid migration. The text filter now searches status values as intended. Validate/Git columns remain removed as they are irrelevant to the migration workflow.
This commit is contained in:
@@ -263,6 +263,17 @@
|
|||||||
columns={[
|
columns={[
|
||||||
{ key: 'title', label: $t.dashboard?.title || 'Title', sortable: true },
|
{ key: 'title', label: $t.dashboard?.title || 'Title', sortable: true },
|
||||||
{ key: 'last_modified', label: $t.dashboard?.last_modified || 'Last Modified', sortable: true },
|
{ key: 'last_modified', label: $t.dashboard?.last_modified || 'Last Modified', sortable: true },
|
||||||
|
{
|
||||||
|
key: 'status',
|
||||||
|
label: $t.dashboard?.status || 'Status',
|
||||||
|
sortable: true,
|
||||||
|
raw: true,
|
||||||
|
render: (item: any) => {
|
||||||
|
const isPublished = item.status === 'published';
|
||||||
|
const cls = isPublished ? 'bg-success-light text-success' : 'bg-surface-muted text-text';
|
||||||
|
return `<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${cls}">${item.status || ''}</span>`;
|
||||||
|
},
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
bind:selectedIds={model.selectedDashboardIds}
|
bind:selectedIds={model.selectedDashboardIds}
|
||||||
selectable
|
selectable
|
||||||
|
|||||||
Reference in New Issue
Block a user