30 lines
689 B
Plaintext
30 lines
689 B
Plaintext
@namespace Oqtane.Themes.Controls
|
|
@inherits ContainerBase
|
|
@attribute [OqtaneIgnore]
|
|
|
|
<span class="app-moduletitle">
|
|
@((MarkupString)title)
|
|
</span>
|
|
|
|
@code {
|
|
private string title = "";
|
|
|
|
protected override Task OnParametersSetAsync()
|
|
{
|
|
title = ModuleState.Title;
|
|
// check for core module actions component
|
|
if (Constants.DefaultModuleActions.Contains(PageState.Action))
|
|
{
|
|
title = PageState.Action;
|
|
}
|
|
else
|
|
{
|
|
if (!string.IsNullOrEmpty(ModuleState.ControlTitle))
|
|
{
|
|
title = ModuleState.ControlTitle;
|
|
}
|
|
}
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|