added IsClickable Page property #1092, improve validation in Role Management, display database information in SQL Management, improve HttpClient header support

This commit is contained in:
Shaun Walker
2021-06-10 20:10:46 -04:00
parent 4bee097e66
commit d82fc8be90
14 changed files with 483 additions and 289 deletions

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using Oqtane.Models;
using Oqtane.Security;
@ -17,7 +17,14 @@ namespace Oqtane.Themes.Controls
protected string GetUrl(Page page)
{
return string.IsNullOrEmpty(page.Url) ? NavigateUrl(page.Path) : page.Url;
if (page.IsClickable)
{
return string.IsNullOrEmpty(page.Url) ? NavigateUrl(page.Path) : page.Url;
}
else
{
return "javascript:void(0)";
}
}
private IEnumerable<Page> GetMenuPages()