Skip to content

Commit

Permalink
[FIX] dashboard usage table
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Takashi <[email protected]>
  • Loading branch information
nicolastakashi committed Jan 17, 2025
1 parent be4b87a commit 524c8ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/fetch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface RuleUsage {
export interface DashboardUsage {
id: string;
serie: string;
name: string;
title: string;
url: string;
}

Expand Down
7 changes: 3 additions & 4 deletions ui/src/pages/metrics/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,15 @@ const DashboardTable: React.FC<DashboardTableProps> = ({ dashboards, currentPage
<Table>
<TableHeader>
<TableRow>
<TableHead className="w-2/5 bg-muted" >Name</TableHead>
<TableHead className="bg-muted">Name</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{dashboards?.data?.map((dashboard, index) => (
<TableRow key={index}>
<TableCell>{dashboard.id}</TableCell>
<TableCell>
<Link to={dashboard.url} target='_blank' className="text-primary">
{dashboard.name}
<Link to={dashboard.url} target='_blank' className="text-blue-500 underline">
{dashboard.title}
</Link>
</TableCell>
</TableRow>
Expand Down

0 comments on commit 524c8ff

Please sign in to comment.