File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
src/cloudscribe.Web.Navigation Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public TreeNode<NavigationNode> StartingNode
7878 {
7979 if ( startingNode == null )
8080 {
81- if ( startingNodeKey . Length > 0 && startingNodeKey != "RootNode" )
81+ if ( ! string . IsNullOrWhiteSpace ( startingNodeKey ) && startingNodeKey != "RootNode" )
8282 {
8383 startingNode = RootNode . FindByKey ( startingNodeKey ) ;
8484 if ( startingNode == null )
@@ -306,7 +306,7 @@ private bool IsAllowedByAdjuster(TreeNode<NavigationNode> node)
306306 private bool FilterIsAllowed ( TreeNode < NavigationNode > node )
307307 {
308308 if ( string . IsNullOrEmpty ( node . Value . ComponentVisibility ) ) { return true ; }
309- if ( navigationFilterName . Length == 0 ) { return false ; }
309+ if ( string . IsNullOrWhiteSpace ( navigationFilterName ) ) { return false ; }
310310 if ( node . Value . ComponentVisibility . Contains ( navigationFilterName ) ) { return true ; }
311311
312312 return false ;
Original file line number Diff line number Diff line change 2828 @Html .Raw (Model .GetIcon (childNode .Value ))@childNode .Value .Text
2929 < / a >
3030 @Model .UpdateTempNode (childNode )
31- @Html .Partial (" SideNavPartial " , Model ) @* recursion * @
31+ @Html .Partial (" Bs4SideNavPartial " , Model ) @* recursion * @
3232 < / li >
3333 }
3434 else
Original file line number Diff line number Diff line change 2525 < li class = " nav-item" >
2626 < a class = " nav-link active" href = " @Url.Content(Model.AdjustUrl(node))" > @Html .Raw (Model .GetIcon (node .Value ))@Model .AdjustText (node )< / a >
2727 @Model .UpdateTempNode (node )
28- @Html .Partial (" SideNavPartial " , Model )
28+ @Html .Partial (" Bs4SideNavPartial " , Model )
2929 < / li >
3030 }
3131 else
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <Description >an ASP.NET Core viewcomponent for menus and breadcrumbs</Description >
5- <VersionPrefix >2.0.10 </VersionPrefix >
6- <AssemblyVersion >2.0.10 </AssemblyVersion >
5+ <VersionPrefix >2.0.11 </VersionPrefix >
6+ <AssemblyVersion >2.0.11 </AssemblyVersion >
77 <Authors >Joe Audette</Authors >
88 <TargetFrameworks >netstandard2.0</TargetFrameworks >
99 <AssemblyName >cloudscribe.Web.Navigation</AssemblyName >
You can’t perform that action at this time.
0 commit comments