Skip to content

Commit

Permalink
Fix update alerts buttons order
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyamodder committed Oct 16, 2022
1 parent f3f4b1e commit 7dff4a1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ struct DeviceUpdateCard: View {
message: Text(
"New Firmware \(viewModel.availableFirmware ?? "") " +
"will be installed"),
primaryButton: .default(Text("Update")) {
primaryButton: .default(Text("Cancel")) {},
secondaryButton: .default(Text("Update")) {
viewModel.update()
},
secondaryButton: .default(Text("Cancel")) {}
}
)
}
.alert(isPresented: $viewModel.showPauseSync) {
Expand All @@ -183,10 +183,10 @@ struct DeviceUpdateCard: View {
message: Text(
"Firmware update is not possible during synchronization. " +
"Wait for sync to finish or pause it."),
primaryButton: .default(Text("Pause")) {
primaryButton: .default(Text("Continue")) {},
secondaryButton: .default(Text("Pause")) {
viewModel.pauseSync()
},
secondaryButton: .default(Text("Continue")) {}
}
)
}
.customAlert(isPresented: $viewModel.showCharge) {
Expand Down

0 comments on commit 7dff4a1

Please sign in to comment.