Skip to content

Commit

Permalink
Improved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsen9026 committed May 22, 2024
1 parent 2bdf942 commit 9dccf95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BLAZAM/BLAZAM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<ServerGarbageCollection>false</ServerGarbageCollection>
<AssemblyVersion>0.9.2</AssemblyVersion>
<Version>2024.05.07.1847</Version>
<Version>2024.05.21.2352</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<RootNamespace>BLAZAM</RootNamespace>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
Expand Down
16 changes: 15 additions & 1 deletion BLAZAMGui/UI/Inputs/TreeViews/OUTreeViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ public class OUTreeViewBase : AppComponentBase

[Parameter]
public string? Label { get; set; }

/// <summary>
/// The root ou of this TreeView
/// </summary>
/// <remarks>
/// Defaults to the App Base root
/// </remarks>
[Parameter]
public HashSet<IDirectoryEntryAdapter> RootOU { get; set; } = new HashSet<IDirectoryEntryAdapter>();
[Parameter]
Expand Down Expand Up @@ -78,6 +83,9 @@ public IDirectoryEntryAdapter? SelectedEntry

[Parameter]
public EventCallback<IDirectoryEntryAdapter> SelectedEntryChanged { get; set; }
/// <summary>
/// Text to show at the end of the TreeView item
/// </summary>
[Parameter]
public Func<IDirectoryEntryAdapter, string>? EndText { get; set; }

Expand Down Expand Up @@ -174,8 +182,14 @@ protected void OpenToSelected()


}
/// <summary>
/// Defines a function to determine whether an Active Directory object should be
/// displayed in the tree view or not
/// </summary>
[Parameter]
public Func<IDirectoryEntryAdapter,bool>? AdditionalVisibilityFilters { get; set; }


protected bool ShouldShowOU(IDirectoryEntryAdapter entry)
{
if (entry is IADOrganizationalUnit ou)
Expand Down

0 comments on commit 9dccf95

Please sign in to comment.