From 6299743a352dc57d7516dc4ac286ffe726e9452d Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 24 May 2026 07:38:23 -0400 Subject: [PATCH] fix(centralui): show Next button after encrypted-bundle upload Step 1's Next button was wrapped in `@if (_session is not null)`, which hid it for encrypted bundles where the first LoadAsync call legitimately leaves _session null until the passphrase is supplied at Step 2. Trigger the Next-button region on `_bundleBytes is not null` instead, showing a placeholder notice when the manifest isn't decrypted yet so the user has a visible affordance to advance to the passphrase step. --- .../Pages/Design/TransportImport.razor | 58 +++++++++++-------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/src/ScadaLink.CentralUI/Components/Pages/Design/TransportImport.razor b/src/ScadaLink.CentralUI/Components/Pages/Design/TransportImport.razor index 2321ffe..6977836 100644 --- a/src/ScadaLink.CentralUI/Components/Pages/Design/TransportImport.razor +++ b/src/ScadaLink.CentralUI/Components/Pages/Design/TransportImport.razor @@ -103,36 +103,46 @@
Reading bundle…
} - @if (_session is not null) + @if (_bundleBytes is not null && _errorMessage is null) { -
-
Source environment
-
@_session.Manifest.SourceEnvironment
+ @if (_session is not null) + { +
+
Source environment
+
@_session.Manifest.SourceEnvironment
-
Exported by
-
@_session.Manifest.ExportedBy
+
Exported by
+
@_session.Manifest.ExportedBy
-
Created
-
@_session.Manifest.CreatedAtUtc.ToString("u")
+
Created
+
@_session.Manifest.CreatedAtUtc.ToString("u")
-
Content count
-
@_session.Manifest.Contents.Count items
+
Content count
+
@_session.Manifest.Contents.Count items
-
SHA-256
-
@_session.Manifest.ContentHash
+
SHA-256
+
@_session.Manifest.ContentHash
-
Encryption
-
- @if (_session.Manifest.Encryption is null) - { - Unencrypted - } - else - { - @_session.Manifest.Encryption.Algorithm - } -
-
+
Encryption
+
+ @if (_session.Manifest.Encryption is null) + { + Unencrypted + } + else + { + @_session.Manifest.Encryption.Algorithm + } +
+
+ } + else + { +
+ Encrypted bundle uploaded. + Click Next to enter the passphrase. +
+ }