From f6538b89c2e7f189571b29ea4c5d60eb5256fc6b Mon Sep 17 00:00:00 2001 From: Bryan Soltis Date: Mon, 6 Nov 2023 13:03:50 -0600 Subject: [PATCH 01/16] 2023-11-06 - BryanSoltis - v3.1.2 Updates ### BUG FIXESS - Updated Configuration to properly close Working modal - Updated Global Export/Import to include ReadOnlyAPI key --- src/Pages/Configuration.razor | 6 ++---- src/Services/ImportExportService.cs | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Pages/Configuration.razor b/src/Pages/Configuration.razor index 3ccf5ca..47c724c 100644 --- a/src/Pages/Configuration.razor +++ b/src/Pages/Configuration.razor @@ -3974,10 +3974,8 @@ message.Type = MessageTypesEnum.ERROR; message.Message = "There was a problem with the request."; } - finally - { - workingmodal.Close(); - } + + workingmodal.Close(); } if (!generalerror) diff --git a/src/Services/ImportExportService.cs b/src/Services/ImportExportService.cs index 7770fe0..5a634d9 100644 --- a/src/Services/ImportExportService.cs +++ b/src/Services/ImportExportService.cs @@ -117,6 +117,7 @@ public static async Task ExportConfig(bool includeadmin = false configdata.SALTKey = config.SALTKey; configdata.AdminPassword = config.AdminPassword; configdata.APIKey = config.APIKey; + configdata.ReadOnlyAPIKey = config.ReadOnlyAPIKey; //IdentityHeaderName configdata.IdentityHeaderName = config.IdentityHeaderName; //AdminUsers @@ -183,6 +184,10 @@ public static async Task PostConfig(ConfigurationData configdat { config.APIKey = configdata.APIKey; } + if (GeneralHelper.IsNotNull(configdata.ReadOnlyAPIKey)) + { + config.ReadOnlyAPIKey = configdata.ReadOnlyAPIKey; + } if (GeneralHelper.IsNotNull(configdata.IdentityHeaderName)) { config.IdentityHeaderName = configdata.IdentityHeaderName; From 26f719b5c54de98e270b72a417f22b9c14fe5b72 Mon Sep 17 00:00:00 2001 From: Bryan Soltis Date: Tue, 7 Nov 2023 14:01:41 -0600 Subject: [PATCH 02/16] 2023-11-07 - BryanSoltis - v3.2.0 Updates ###FEATURES - Added ability to add custom locations - Added guidance to Configuration page for locations --- src/Pages/Configuration.razor | 65 ++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/src/Pages/Configuration.razor b/src/Pages/Configuration.razor index 47c724c..eb7ef57 100644 --- a/src/Pages/Configuration.razor +++ b/src/Pages/Configuration.razor @@ -898,6 +898,14 @@

The current Locations.

+ @if (admin) + { +

+ +

+ }
@@ -943,6 +951,10 @@ } + + } } @@ -955,37 +967,6 @@ @if (admin) { - @*
-
- New Location -
-
-

Add a new Location.

-
- - - - - - - - - - - - - -
Name - -
Short Name - -
- -
-
-
*@