App Layout: Cancel and Back on Spaces Bottom Sheet

- Fixed
This commit is contained in:
Gil Eluard
2022-08-17 17:22:03 +02:00
parent 754a608cc6
commit 8447bdb314
8 changed files with 23 additions and 13 deletions
@@ -59,8 +59,10 @@ struct SpaceSelector: View {
}
}
ToolbarItem(placement: .cancellationAction) {
Button(VectorL10n.cancel) {
viewModel.send(viewAction: .cancel)
if viewModel.viewState.showCancel {
Button(VectorL10n.cancel) {
viewModel.send(viewAction: .cancel)
}
}
}
}