Hide "Set as default language" on the default language #23218

Back

Volobox 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?

  1. Sign in as admin and open Language Management > Languages.
  2. The default language's Actions menu has no "Set as default language"; every other language still has it.
  3. 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

Version
11.0.0-rc.3
Release Date
17 November, 2026
Labels
No labels
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.