Merge branch 'master' of https://github.com/chlupac/oqtane.framework
This commit is contained in:
commit
9eb14cac3e
|
@ -39,7 +39,7 @@
|
||||||
if (typename != null)
|
if (typename != null)
|
||||||
{
|
{
|
||||||
moduleType = Type.GetType(typename);
|
moduleType = Type.GetType(typename);
|
||||||
}
|
|
||||||
if (moduleType != null)
|
if (moduleType != null)
|
||||||
{
|
{
|
||||||
builder.OpenComponent(0, moduleType);
|
builder.OpenComponent(0, moduleType);
|
||||||
|
@ -50,6 +50,12 @@
|
||||||
// module does not exist with typename specified
|
// module does not exist with typename specified
|
||||||
message = "Module Does Not Have A Component Named " + Utilities.GetTypeNameLastSegment(typename, 0) + ".razor";
|
message = "Module Does Not Have A Component Named " + Utilities.GetTypeNameLastSegment(typename, 0) + ".razor";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
message = "Something is wrong with moduletype";
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -408,7 +408,7 @@
|
||||||
if (module.PageId == pageid)
|
if (module.PageId == pageid)
|
||||||
{
|
{
|
||||||
// ensure module's pane exists in current page and if not, assign it to the Admin pane
|
// ensure module's pane exists in current page and if not, assign it to the Admin pane
|
||||||
if (!panes.ToLower().Contains(module.Pane.ToLower()))
|
if (panes == null || !panes.ToLower().Contains(module.Pane.ToLower()))
|
||||||
{
|
{
|
||||||
module.Pane = Constants.AdminPane;
|
module.Pane = Constants.AdminPane;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user