commit
921306f7b2
@ -74,11 +74,14 @@
|
||||
}
|
||||
if (authorized)
|
||||
{
|
||||
// get module control title
|
||||
string title = (string)moduleType.GetProperty("Title").GetValue(moduleobject);
|
||||
if (title != "")
|
||||
if (PageState.Control != "Settings")
|
||||
{
|
||||
module.Title = title;
|
||||
// get module control title
|
||||
string title = (string)moduleType.GetProperty("Title").GetValue(moduleobject);
|
||||
if (title != "")
|
||||
{
|
||||
module.Title = title;
|
||||
}
|
||||
}
|
||||
builder.OpenComponent(0, Type.GetType(Constants.DefaultContainer));
|
||||
builder.AddAttribute(1, "ModuleState", module);
|
||||
|
@ -1,4 +1,17 @@
|
||||
@using Oqtane.Themes
|
||||
@inherits ContainerBase
|
||||
|
||||
@ModuleState.Title
|
||||
@title
|
||||
|
||||
@functions {
|
||||
string title = "";
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
title = ModuleState.Title;
|
||||
if (PageState.Control == "Settings")
|
||||
{
|
||||
title = PageState.Control;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user