This commit is contained in:
@ -12,7 +12,7 @@
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
breadcrumbs = string.Empty;
|
||||
var pageid = PageState.Page.PageId;
|
||||
int? pageid = PageState.Page.PageId;
|
||||
for (int i = PageState.Pages.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var p = PageState.Pages[i];
|
||||
|
@ -54,7 +54,6 @@
|
||||
}
|
||||
menu += "<a href=\"" + p.Url + "\" class=\"nav-link\" style=\"padding-left: " + ((p.Level + 1) * 15).ToString() + "px !important;\"" + target + ">";
|
||||
}
|
||||
menu += "<a href=\string.Empty + NavigateUrl(p.Path) + "\" class=\"nav-link\" style=\"padding-left: " + ((p.Level + 1) * 15).ToString() + "px !important;\">";
|
||||
|
||||
if (p.HasChildren)
|
||||
{
|
||||
@ -114,14 +113,14 @@
|
||||
if (p.PageId == PageState.Page.PageId)
|
||||
{
|
||||
menu += "<li class=\"nav-item active\">" +
|
||||
"<a class=\"nav-link\" href=\string.Empty + NavigateUrl(p.Path) + "\">" +
|
||||
"<a class=\"nav-link\" href=\"" + NavigateUrl(p.Path) + "\">" +
|
||||
((p.Icon != string.Empty) ? "<span class=\"oi oi-" + p.Icon + "\" aria-hidden=\"true\"></span> " : string.Empty) +
|
||||
p.Name + " <span class=\"sr-only\">(current)</span></a></li>";
|
||||
}
|
||||
else
|
||||
{
|
||||
menu += "<li class=\"nav-item\">" +
|
||||
"<a class=\"nav-link\" href=\string.Empty + NavigateUrl(p.Path) + "\">" +
|
||||
"<a class=\"nav-link\" href=\"" + NavigateUrl(p.Path) + "\">" +
|
||||
((p.Icon != string.Empty) ? "<span class=\"oi oi-" + p.Icon + "\" aria-hidden=\"true\"></span> " : string.Empty) +
|
||||
p.Name + "</a></li>";
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
@((MarkupString)title)
|
||||
|
||||
@code {
|
||||
private title = "";
|
||||
private string title = "";
|
||||
|
||||
protected override Task OnParametersSetAsync()
|
||||
{
|
||||
|
Reference in New Issue
Block a user