From 8f55a516c0dd3cbc21402505330db9ad1f0770d9 Mon Sep 17 00:00:00 2001 From: Chris Jacobsen Date: Mon, 30 Sep 2024 20:37:09 -0400 Subject: [PATCH] Directory Entry Context Menu --- BLAZAM/BLAZAM.csproj | 2 +- .../UI/Dashboard/Widgets/LockedOutUsers.razor | 8 +------- .../Widgets/NewEntriesWidgetDataGrid.razor | 19 ++++++++++++++++--- .../DirectoryEntryContextMenuItems.razor | 14 +++++++++++++- 4 files changed, 31 insertions(+), 12 deletions(-) diff --git a/BLAZAM/BLAZAM.csproj b/BLAZAM/BLAZAM.csproj index 8ff558a2..605b4116 100644 --- a/BLAZAM/BLAZAM.csproj +++ b/BLAZAM/BLAZAM.csproj @@ -6,7 +6,7 @@ enable false 1.0.3 - 2024.09.28.2337 + 2024.10.01.0034 false BLAZAM False diff --git a/BLAZAMGui/UI/Dashboard/Widgets/LockedOutUsers.razor b/BLAZAMGui/UI/Dashboard/Widgets/LockedOutUsers.razor index 93e7a500..9d55f34f 100644 --- a/BLAZAMGui/UI/Dashboard/Widgets/LockedOutUsers.razor +++ b/BLAZAMGui/UI/Dashboard/Widgets/LockedOutUsers.razor @@ -29,13 +29,7 @@ - @if (@context.Item.CanUnlock) - { - - @AppLocalization["Unlock User"] - - - } + diff --git a/BLAZAMGui/UI/Dashboard/Widgets/NewEntriesWidgetDataGrid.razor b/BLAZAMGui/UI/Dashboard/Widgets/NewEntriesWidgetDataGrid.razor index e67e02d8..867ab3ca 100644 --- a/BLAZAMGui/UI/Dashboard/Widgets/NewEntriesWidgetDataGrid.razor +++ b/BLAZAMGui/UI/Dashboard/Widgets/NewEntriesWidgetDataGrid.razor @@ -20,15 +20,28 @@ - - @context.Item.CanonicalName - + + + + + + @context.Item?.CanonicalName + + + + + + + + + @if (context.Item?.Created != null) { + @context.Item.Created.Value.ToLocalTime() } diff --git a/BLAZAMGui/UI/Users/DirectoryEntryContextMenuItems.razor b/BLAZAMGui/UI/Users/DirectoryEntryContextMenuItems.razor index 17722da8..c76c7914 100644 --- a/BLAZAMGui/UI/Users/DirectoryEntryContextMenuItems.razor +++ b/BLAZAMGui/UI/Users/DirectoryEntryContextMenuItems.razor @@ -4,10 +4,22 @@ if(account.CanUnlock && account.LockedOut) { - @AppLocalization["Unlock User"] + @AppLocalization["Unlock"] @AppLocalization[account.ObjectType.ToString()] } + if (account.Enabled) + { + + @AppLocalization["Disable"] @AppLocalization[account.ObjectType.ToString()] + + } + if (account.Disabled) + { + + @AppLocalization["Enable"] @AppLocalization[account.ObjectType.ToString()] + + } }