Skip to content

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
JGeek00 committed Oct 11, 2023
2 parents 4f0ba59 + 9e57b57 commit 3249cc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/screens/clients/added_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class _AddedListState extends State<AddedList> {
openClientFormModal(
context: context,
width: width,
client: client,
onConfirm: confirmEditClient,
onDelete: deleteClient
);
Expand Down
7 changes: 4 additions & 3 deletions lib/widgets/add_server/add_server_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ class _AddServerModalState extends State<AddServerModal> {
}

void connect() async {
setState(() => isConnecting = true);

Server serverObj = Server(
id: uuid.v4(),
name: nameController.text,
Expand All @@ -140,7 +142,6 @@ class _AddServerModalState extends State<AddServerModal> {
: null,
runningOnHa: homeAssistant
);
setState(() => isConnecting = true);

final result = homeAssistant == true
? await loginHA(serverObj)
Expand Down Expand Up @@ -211,10 +212,11 @@ class _AddServerModalState extends State<AddServerModal> {
else {
Navigator.pop(context);
}
return;
}

void edit() async {
setState(() => isConnecting = true);

final Server serverObj = Server(
id: widget.server!.id,
name: nameController.text,
Expand Down Expand Up @@ -286,7 +288,6 @@ class _AddServerModalState extends State<AddServerModal> {
else {
Navigator.pop(context);
}
return;
}

Widget actions() {
Expand Down

0 comments on commit 3249cc6

Please sign in to comment.