CAKE-169 | made Save button disabled during testing connection to node (node_create_or_edit_page.dart)
OleksandrSobol committed
Nov 20, 2020 at 18:46 UTC
83fea0e9d3a440e8ccee140d068904c7d584af91
1 file changed
+3
-1
lib/src/screens/nodes/node_create_or_edit_page.dart
+3
-1
@@ -171,7 +171,9 @@ class NodeCreateOrEditPage extends BasePage {
171
text: S.of(context).save,
172
color: Theme.of(context).accentTextTheme.body2.color,
173
textColor: Colors.white,
174
- isDisabled: !nodeCreateOrEditViewModel.isReady,
174
+ isDisabled: (!nodeCreateOrEditViewModel.isReady)||
175
+ (nodeCreateOrEditViewModel
176
+ .connectionState is IsConnectingState),
177
),
178
)),
179
],