CAKE-169 | made Save button disabled during testing connection to node (node_create_or_edit_page.dart)

This commit is contained in:
OleksandrSobol 2020-11-20 18:46:06 +02:00
parent 88477751c6
commit 83fea0e9d3

View file

@ -171,7 +171,9 @@ class NodeCreateOrEditPage extends BasePage {
text: S.of(context).save,
color: Theme.of(context).accentTextTheme.body2.color,
textColor: Colors.white,
isDisabled: !nodeCreateOrEditViewModel.isReady,
isDisabled: (!nodeCreateOrEditViewModel.isReady)||
(nodeCreateOrEditViewModel
.connectionState is IsConnectingState),
),
)),
],