Skip to content

Commit 8a61b16

Browse files
committed
fixed compile error
1 parent 0ace6b1 commit 8a61b16

35 files changed

+56
-58
lines changed

src/Blazor.Server.UI/Components/Dialogs/DeleteConfirmation.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<MudText>@ContentText</MudText>
1212
</DialogContent>
1313
<DialogActions>
14-
<MudButton StartIcon="@Icons.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
15-
<MudButton StartIcon="@Icons.Filled.Delete" Color="Color.Error" Variant="Variant.Filled" OnClick="Submit">@L["Confirm"]</MudButton>
14+
<MudButton StartIcon="@Icons.Material.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
15+
<MudButton StartIcon="@Icons.Material.Filled.Delete" Color="Color.Error" Variant="Variant.Filled" OnClick="Submit">@L["Confirm"]</MudButton>
1616
</DialogActions>
1717
</MudDialog>
1818

src/Blazor.Server.UI/Components/Dialogs/LogoutConfirmation.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<MudText>@ContentText</MudText>
1111
</DialogContent>
1212
<DialogActions>
13-
<MudButton StartIcon="@Icons.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
14-
<MudButton StartIcon="@Icons.Filled.Logout" Color="@Color" Variant="Variant.Filled" OnClick="Submit">@ButtonText</MudButton>
13+
<MudButton StartIcon="@Icons.Material.Filled.Cancel" OnClick="Cancel">@L["Cancel"]</MudButton>
14+
<MudButton StartIcon="@Icons.Material.Filled.Logout" Color="@Color" Variant="Variant.Filled" OnClick="Submit">@ButtonText</MudButton>
1515
</DialogActions>
1616
</MudDialog>
1717

src/Blazor.Server.UI/Components/Localization/LanguageSelector.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@using System.Globalization
55

66
<MudTooltip Text="@CurrentLanguage">
7-
<MudMenu Class="mx-1" Icon="@Icons.Material.Outlined.Translate" Color="Color.Default" Direction="Direction.Bottom" OffsetY="true"
7+
<MudMenu Class="mx-1" Icon="@Icons.Material.Outlined.Translate" Color="Color.Default"
88
Dense="true">
99
@foreach (var language in SupportedLanguages)
1010
{

src/Blazor.Server.UI/Components/Shared/NotificationMenu.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
@inject IStringLocalizer<SharedResource> L
33

44
<MudBadge Color="Color.Secondary" Dot="true" Overlap="true" Visible="_newNotificationsAvailable">
5-
<MudMenu Icon="@Icons.Outlined.Notifications" AnchorOrigin="Origin.BottomLeft" TransformOrigin="Origin.TopCenter" PopoverClass="docs-layout-menu-shadow" ListClass="pa-2 docs-menu-list" LockScroll="true">
5+
<MudMenu Icon="@Icons.Material.Outlined.Notifications" AnchorOrigin="Origin.BottomLeft" TransformOrigin="Origin.TopCenter" PopoverClass="docs-layout-menu-shadow" ListClass="pa-2 docs-menu-list" LockScroll="true">
66
<div class="d-flex justify-space-between align-center px-2">
77
<MudText Typo="Typo.subtitle2">@L["Notifications"]</MudText>
8-
<MudButton Disabled="@(_newNotificationsAvailable == false)" OnClick="MarkNotificationAsRead" StartIcon="@Icons.Filled.DoneAll" Variant="Variant.Text" Color="Color.Primary" Class="ml-16 mr-n2">@L["Mark as read"]</MudButton>
8+
<MudButton Disabled="@(_newNotificationsAvailable == false)" OnClick="MarkNotificationAsRead" StartIcon="@Icons.Material.Filled.DoneAll" Variant="Variant.Text" Color="Color.Primary" Class="ml-16 mr-n2">@L["Mark as read"]</MudButton>
99
</div>
1010
@if (_messages != null && _newNotificationsAvailable)
1111
{
1212
@foreach (var (message, isRead) in _messages.Take(5))
1313
{
14-
<MudMenuItem Class="px-2 py-0 rounded" Link="@($"/mud/announcements/{message.Id}")">
14+
<MudMenuItem Class="px-2 py-0 rounded" Href="@($"/mud/announcements/{message.Id}")">
1515
<MudText Typo="Typo.subtitle2">@message.Title</MudText>
1616
<MudText Typo="Typo.body2">@($"{message.Authors.FirstOrDefault()?.DisplayName} • {message.PublishDate.ToString("MM/dd/yyyy")}")</MudText>
1717
</MudMenuItem>

src/Blazor.Server.UI/Components/Shared/UserMenu.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@inject IStringLocalizer<SharedResource> L
22
<MudMenu AnchorOrigin="Origin.BottomRight"
3-
Icon="@Icons.Filled.PermIdentity"
3+
Icon="@Icons.Material.Filled.PermIdentity"
44
Class="mx-1"
55
LockScroll="true"
66
TransformOrigin="Origin.TopRight">

src/Blazor.Server.UI/Pages/CheckinPoints/CheckinPoints.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
}
100100
</MudHidden>
101101
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
102-
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
102+
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
103103
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
104104
@if (_canCreate)
105105
{
@@ -142,7 +142,7 @@
142142
{
143143
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
144144
Dense="true"
145-
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
145+
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
146146
@if (_canEdit)
147147
{
148148
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>

src/Blazor.Server.UI/Pages/Departments/Departments.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
}
9999
</MudHidden>
100100
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
101-
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
101+
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
102102
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
103103
@if (_canCreate)
104104
{
@@ -140,8 +140,8 @@
140140
{
141141
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
142142
Dense="true"
143-
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" Direction="Direction.Left"
144-
OffsetX="true">
143+
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info"
144+
>
145145
@if (_canEdit)
146146
{
147147
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>

src/Blazor.Server.UI/Pages/Designations/Designations.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
}
9898
</MudHidden>
9999
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
100-
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
100+
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
101101
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
102102
@if (_canCreate)
103103
{
@@ -139,7 +139,7 @@
139139
{
140140
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
141141
Dense="true"
142-
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
142+
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
143143
@if (_canEdit)
144144
{
145145
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>

src/Blazor.Server.UI/Pages/Devices/Devices.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
}
100100
</MudHidden>
101101
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
102-
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
102+
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
103103
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
104104
@if (_canCreate)
105105
{
@@ -143,7 +143,7 @@
143143
{
144144
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
145145
Dense="true"
146-
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info" >
146+
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info" >
147147
@if (_canEdit)
148148
{
149149
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>

src/Blazor.Server.UI/Pages/Employees/Employees.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
}
102102
</MudHidden>
103103
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
104-
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Filled.KeyboardCommandKey" EndIcon="@Icons.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
104+
<MudMenu AnchorOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.KeyboardCommandKey" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="@L["Action"]" Color="Color.Primary" Variant="Variant.Filled">
105105
<MudMenuItem Disabled="@_loading" OnClick="@(()=>OnRefresh())">@L["Refresh"]</MudMenuItem>
106106
@if (_canCreate)
107107
{
@@ -149,7 +149,7 @@
149149
{
150150
<MudMenu Label="@L["Actions"]" Variant="Variant.Filled" DisableElevation="true" Size="Size.Small"
151151
Dense="true"
152-
EndIcon="@Icons.Filled.KeyboardArrowDown" IconColor="Color.Info">
152+
EndIcon="@Icons.Material.Filled.KeyboardArrowDown" IconColor="Color.Info">
153153
@if (_canEdit)
154154
{
155155
<MudMenuItem OnClick="@(()=>OnEdit(context))">@L["Edit"]</MudMenuItem>

0 commit comments

Comments
 (0)