Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d2e1ca

Browse files
committed
UI: Workspace stats and row
1 parent c5ed79d commit 1d2e1ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/src/components/WorkspaceStats/WorkspaceStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({
4646
to={`/templates/${workspace.template_name}`}
4747
className={combineClasses([styles.statsValue, styles.link])}
4848
>
49-
{workspace.template_name}
49+
{workspace.template_display_name.length > 0 ? workspace.template_display_name : workspace.template_name}
5050
</Link>
5151
</div>
5252
<div className={styles.statItem}>

site/src/components/WorkspacesTable/WorkspacesRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const WorkspacesRow: FC<
6161
</TableCellLink>
6262

6363
<TableCellLink to={workspacePageLink}>
64-
<TableCellDataPrimary>{workspace.template_name}</TableCellDataPrimary>
64+
<TableCellDataPrimary>{workspace.template_display_name.length > 0 ? workspace.template_display_name : workspace.template_name}</TableCellDataPrimary>
6565
</TableCellLink>
6666
<TableCellLink to={workspacePageLink}>
6767
<TableCellData>

0 commit comments

Comments
 (0)