refactored the flows to use a state and an event for the transfer ownership screen

This commit is contained in:
Mauro Romito
2026-01-28 14:33:28 +01:00
committed by Mauro
parent 9999cd24b8
commit 8f6506ced0
14 changed files with 116 additions and 27 deletions
@@ -99,7 +99,7 @@ struct RoomChangeRolesScreen: View {
.disabled(!context.viewState.hasChanges)
}
if context.viewState.mode == .owner {
if context.viewState.mode == .owner || context.viewState.hasChanges {
ToolbarItem(placement: .cancellationAction) {
ToolbarButton(role: .cancel) {
context.send(viewAction: .cancel)