Skip to content

Commit

Permalink
Fix for #232
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsen9026 committed Feb 15, 2024
1 parent ffe8a01 commit b43ab8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 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.8.8</AssemblyVersion>
<Version>2024.02.15.0059</Version>
<Version>2024.02.15.0103</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<RootNamespace>BLAZAM</RootNamespace>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
Expand Down
7 changes: 1 addition & 6 deletions BLAZAM/Pages/Groups/ViewGroup.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@
}
</AppModal>

<AppModal Title=@AppLocalization["Rename Group"] @ref=@RenameModal>
@if (RenameModal?.IsShown == true)
{
<RenameGroupModalContent Group="Group" />
}
</AppModal>

<AppModal Title=@AppLocalization["Change History"] @ref=@ChangeHistoryModal Options=@(new DialogOptions(){FullWidth=true,MaxWidth=MaxWidth.ExtraExtraLarge})>
@if (ChangeHistoryModal?.IsShown == true)
{
Expand Down
2 changes: 1 addition & 1 deletion BLAZAMGui/UI/DirectoryEntryViewBase.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected virtual async void DiscardChanges()
protected void Renamed(IDirectoryEntryAdapter renamedEntry)
{


Nav.WarnOnNavigation = false;
Nav.NavigateTo(renamedEntry.SearchUri);


Expand Down
5 changes: 2 additions & 3 deletions BLAZAMGui/UI/Groups/RenameGroupModalContent.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@inherits AppModalContent
<div Background="Background.Light" Color="Color.Dark">
<Section Title=@AppLocalization["Name"]>

@if (Group.CanEditField(ActiveDirectoryFields.SAMAccountName))
Expand All @@ -26,7 +25,7 @@
}

<MudButton Color=Color.Primary OnClick="SaveChanges">@AppLocalization["Save Changes"]</MudButton>
</div>

@code {
#nullable disable warnings
string GroupName;
Expand All @@ -38,7 +37,7 @@
}


async Task SaveChanges()
void SaveChanges()
{
if(GroupName.IsNullOrEmpty()){
SnackBarService.Warning("You must provide a group name");
Expand Down

0 comments on commit b43ab8f

Please sign in to comment.