mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
refactored the flows to use a state and an event for the transfer ownership screen
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user