[pdm-devel] [PATCH datacenter-manager] ui: finish infinite loading screen on login when there is an invalid sub

Dominik Csapak d.csapak at proxmox.com
Thu Dec 19 16:29:16 CET 2024


by disabling the subscription panel, we accidentally never get out
of the 'loading' state of the login. To fix that, simply set the same
conditions as when there was a valid subscription.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 ui/src/main.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/src/main.rs b/ui/src/main.rs
index 1e48fa5..2ba7d47 100644
--- a/ui/src/main.rs
+++ b/ui/src/main.rs
@@ -165,6 +165,8 @@ impl Component for DatacenterManagerApp {
                 // Disable for alpha and rework for a beta or stable version to avoid friction if a
                 // few unsubscribed test instances are present in another subscribed (big) setup.
                 // self.show_subscription_alert = Some(true);
+                self.subscription_confirmed = true;
+                self.show_subscription_alert = Some(false);
                 true
             }
             Msg::Logout => {
-- 
2.39.5





More information about the pdm-devel mailing list