Add button in create room dialog can be pressed multiple times (#6005)

- Fixed
This commit is contained in:
Gil Eluard
2022-04-08 11:25:06 +02:00
committed by GitHub
parent 1f6fb2b2bf
commit 44c1689fa8
3 changed files with 7 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ struct MatrixItemChooser: View {
var body: some View {
listContent
.background(Color.clear)
.waitOverlay(show: viewModel.viewState.loading)
.waitOverlay(show: viewModel.viewState.loading, message: viewModel.viewState.loadingText, allowUserInteraction: false)
.alert(isPresented: .constant(viewModel.viewState.error != nil)) {
Alert(title: Text(VectorL10n.error), message: Text(viewModel.viewState.error ?? ""), dismissButton: .cancel(Text(VectorL10n.ok)))
}