Skip to content

Commit b002f32

Browse files
turn published grids' username fields to filter links
1 parent 1473ed1 commit b002f32

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

client/src/components/Grid/configs/historiesPublished.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ const fields: FieldArray = [
8888
{
8989
key: "username",
9090
title: "Username",
91-
type: "text",
91+
type: "link",
92+
handler: (data: HistoryEntry) => {
93+
emit(`/histories/list_published?f-username=${data.username}`);
94+
},
9295
},
9396
];
9497

client/src/components/Grid/configs/pagesPublished.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ const fields: FieldArray = [
8787
{
8888
key: "username",
8989
title: "Owner",
90-
type: "text",
90+
type: "link",
91+
handler: (data: PageEntry) => {
92+
emit(`/pages/list_published?f-username=${data.username}`);
93+
},
9194
},
9295
];
9396

client/src/components/Grid/configs/visualizationsPublished.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ const fields: FieldArray = [
7676
{
7777
key: "username",
7878
title: "Owner",
79-
type: "text",
79+
type: "link",
80+
handler: (data: VisualizationEntry) => {
81+
emit(`/visualizations/list_published?f-username=${data.username}`);
82+
},
8083
},
8184
{
8285
key: "tags",

0 commit comments

Comments
 (0)