Hide "Set as default language" on the default language #23218
BackVolobox task: VolosoftWorkspace#1866
Description
On Language Management > Languages, the Actions menu of the default language still offered "Set as default language". The action's visibility only checked the LanguageManagement.Languages.ChangeDefault permission; it now also requires that the row is not already the default.
- MVC:
Pages/LanguageManagement/index.js - Blazorise:
LanguageManagement.razor.cs - MudBlazor:
LanguageManagement.razor - Angular:
default-languages-entity-actions.ts
UI only; SetAsDefaultAsync itself is unchanged (setting the current default again is harmless).
Related: #23217 touches the Delete action in the same files; the two branches merge cleanly in either order.
How to test it?
- Sign in as admin and open Language Management > Languages.
- The default language's Actions menu has no "Set as default language"; every other language still has it.
- Set another language as default: after the list reloads, the action moves to the previous default.
The Blazor and MudBlazor projects build; the Angular package was not built locally.
🤖 Generated with Claude Code