We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f11be43 commit 566f96bCopy full SHA for 566f96b
examples/Demo/Shared/Components/NotificationCenterPanel.razor
@@ -5,9 +5,12 @@
5
6
<FluentStack>
7
<FluentSpacer />
8
- <FluentAnchor Appearance="@Appearance.Hypertext" Href="" OnClick="@(e => MessageService.Clear(App.MESSAGES_NOTIFICATION_CENTER) )">
9
- Dismiss all
10
- </FluentAnchor>
+ @if (MessageService.Count(App.MESSAGES_NOTIFICATION_CENTER) > 0)
+ {
+ <FluentAnchor Appearance="@Appearance.Hypertext" Href="#" OnClick="@(e => MessageService.Clear(App.MESSAGES_NOTIFICATION_CENTER))">
11
+ Dismiss all
12
+ </FluentAnchor>
13
+ }
14
</FluentStack>
15
16
<br />
0 commit comments