From bc034f45e102703d49ca5d37f7248e5afb0c0ba0 Mon Sep 17 00:00:00 2001 From: Carlos Nihelton Date: Mon, 19 Aug 2024 16:57:46 -0300 Subject: [PATCH] Hides the Landscape SaaS instead of disabling it As before, it's enabled by default in debug mode. In production model.isSaaSSupported returns false and the option is hidden from the radio group. --- .../lib/pages/landscape/landscape_page.dart | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gui/packages/ubuntupro/lib/pages/landscape/landscape_page.dart b/gui/packages/ubuntupro/lib/pages/landscape/landscape_page.dart index 03f6c80b3..1003bb069 100644 --- a/gui/packages/ubuntupro/lib/pages/landscape/landscape_page.dart +++ b/gui/packages/ubuntupro/lib/pages/landscape/landscape_page.dart @@ -158,17 +158,17 @@ class LandscapeConfigForm extends StatelessWidget { Flexible( child: Column( children: [ - FocusTraversalOrder( - order: const NumericFocusOrder(0), - child: _ConfigTypeRadio( - value: LandscapeConfigType.saas, - title: lang.landscapeQuickSetupSaas, - subtitle: lang.landscapeQuickSetupSaasHint, - groupValue: model.configType, - onChanged: - model.isSaaSSupported ? model.setConfigType : null, + if (model.isSaaSSupported) + FocusTraversalOrder( + order: const NumericFocusOrder(0), + child: _ConfigTypeRadio( + value: LandscapeConfigType.saas, + title: lang.landscapeQuickSetupSaas, + subtitle: lang.landscapeQuickSetupSaasHint, + groupValue: model.configType, + onChanged: model.setConfigType, + ), ), - ), FocusTraversalOrder( order: const NumericFocusOrder(2), child: _ConfigTypeRadio(