mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-18 02:24:22 +00:00
Merge pull request #4193 from leigh-pointer/LangButtStyle
LanguageSwitcher to use the ButtonClass parameter
This commit is contained in:
commit
bfa891f0ca
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
@if (ShowLanguageSwitcher)
|
@if (ShowLanguageSwitcher)
|
||||||
{
|
{
|
||||||
<LanguageSwitcher DropdownAlignment="@LanguageDropdownAlignment" />
|
<LanguageSwitcher ButtonClass="@ButtonClass" DropdownAlignment="@LanguageDropdownAlignment" />
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (_showEditMode || (PageState.Page.IsPersonalizable && PageState.User != null && UserSecurity.IsAuthorized(PageState.User, RoleNames.Registered)))
|
@if (_showEditMode || (PageState.Page.IsPersonalizable && PageState.User != null && UserSecurity.IsAuthorized(PageState.User, RoleNames.Registered)))
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
@if (_supportedCultures?.Count() > 1)
|
@if (_supportedCultures?.Count() > 1)
|
||||||
{
|
{
|
||||||
<div class="btn-group pe-1" role="group">
|
<div class="btn-group pe-1" role="group">
|
||||||
<button id="btnCultures" type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button id="btnCultures" type="button" class="btn @ButtonClass dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<span class="oi oi-globe"></span>
|
<span class="oi oi-globe"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu @MenuAlignment" aria-labelledby="btnCultures">
|
<div class="dropdown-menu @MenuAlignment" aria-labelledby="btnCultures">
|
||||||
@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public string DropdownAlignment { get; set; } = string.Empty; // Empty or Left or Right
|
public string DropdownAlignment { get; set; } = string.Empty; // Empty or Left or Right
|
||||||
|
[Parameter]
|
||||||
|
public string ButtonClass { get; set; } = "btn-outline-secondary";
|
||||||
|
|
||||||
[CascadingParameter]
|
[CascadingParameter]
|
||||||
HttpContext HttpContext { get; set; }
|
HttpContext HttpContext { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user