mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Re-order the call buttons to match the Figma and Element Web. (#5696)
This commit is contained in:
@@ -46,14 +46,6 @@ struct RoomCallControlsToolbar: ToolbarContent {
|
|||||||
.disabled(!viewState.canJoinCall)
|
.disabled(!viewState.canJoinCall)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ToolbarItem(placement: .primaryAction) {
|
|
||||||
Button { onCallTap(true) } label: {
|
|
||||||
CompoundIcon(\.voiceCallSolid)
|
|
||||||
}
|
|
||||||
.accessibilityLabel(L10n.a11yStartVoiceCall)
|
|
||||||
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVoiceCall)
|
|
||||||
.disabled(!viewState.canJoinCall)
|
|
||||||
}
|
|
||||||
ToolbarItem(placement: .primaryAction) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
Button { onCallTap(false) } label: {
|
Button { onCallTap(false) } label: {
|
||||||
CompoundIcon(\.videoCallSolid)
|
CompoundIcon(\.videoCallSolid)
|
||||||
@@ -62,6 +54,15 @@ struct RoomCallControlsToolbar: ToolbarContent {
|
|||||||
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVideoCall)
|
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVideoCall)
|
||||||
.disabled(!viewState.canJoinCall)
|
.disabled(!viewState.canJoinCall)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ToolbarItem(placement: .primaryAction) {
|
||||||
|
Button { onCallTap(true) } label: {
|
||||||
|
CompoundIcon(\.voiceCallSolid)
|
||||||
|
}
|
||||||
|
.accessibilityLabel(L10n.a11yStartVoiceCall)
|
||||||
|
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVoiceCall)
|
||||||
|
.disabled(!viewState.canJoinCall)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ToolbarItem(placement: .primaryAction) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
|
|||||||
Reference in New Issue
Block a user