Skip to content

Commit 240eb01

Browse files
authored
feat/empty menu state (#790)
1 parent 077c246 commit 240eb01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Masa.Stack.Components/Shared/GlobalNavigations/ExpansionMenuWrapper.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
else
4040
{
4141
<div class="d-flex justify-center align-center" style="width:100%;">
42-
<MEmptyState Title="没有权限"
43-
Text="用户没有任何权限,请检查角色和团队设置"
42+
<MEmptyState Title="@TranslateProvider.DT("NoPermissionTitle")"
43+
Text="@TranslateProvider.DT(" NoPermissionText")"
4444
Icon="mdi-flask-empty-outline"
4545
Size="100">
4646
</MEmptyState>

src/Masa.Stack.Components/Shared/GlobalNavigations/GlobalNavigation.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
<MListItemTitle>@DT(item.Name)</MListItemTitle>
3737
</MListItemContent>
3838
<MListItemAction Class="ma-0">
39-
<SAutoLoadingButton Icon Small Color="#FFB547"
39+
<SBtn Icon Small Color="#FFB547"
4040
OnClick="@(() => FavoriteRemoveAsync(item))"
4141
OnClickStopPropagation>
4242
<SIcon Small Tooltip="@T("CancelFavorite")">mdi-star</SIcon>
43-
</SAutoLoadingButton>
43+
</SBtn>
4444
</MListItemAction>
4545
</MListItem>
4646
}

0 commit comments

Comments
 (0)