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 53e17f9c5e
commit 55191b3a7c
8 changed files with 23 additions and 13 deletions

View File

@@ -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)
}
}
}
}