Skip to content

Commit 13bcaa0

Browse files
authored
Add tooltip to error logs link (#6546)
* Add tooltip to error logs link * Fix one error tooltip
1 parent 79407c6 commit 13bcaa0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Aspire.Dashboard/Components/ResourcesGridColumns/UnreadLogErrorsBadge.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
@if (_unviewedCount > 0)
77
{
8-
<FluentAnchor aria-label="@(_unviewedCount == 1 ? nameof(Columns.UnreadLogErrorsBadgeOneErrorLog) : string.Format(Loc[nameof(Columns.UnreadLogErrorsBadgeErrorLogs)], _unviewedCount))"
8+
var tooltip = _unviewedCount == 1 ? Loc[nameof(Columns.UnreadLogErrorsBadgeOneErrorLog)] : string.Format(Loc[nameof(Columns.UnreadLogErrorsBadgeErrorLogs)], _unviewedCount);
9+
<FluentAnchor aria-label="@tooltip"
10+
title="@tooltip"
911
Href="@GetResourceErrorStructuredLogsUrl()"
1012
Appearance="Appearance.Stealth"
1113
Class="unread-logs-errors-link"

0 commit comments

Comments
 (0)