Fix room pane header buttons onClicked

This commit is contained in:
miruka 2020-03-21 15:02:37 -04:00
parent 373ce6b925
commit 73f14cac8e

View File

@ -45,9 +45,9 @@ MultiviewPane {
enabled: ["back", "members", "settings"].includes(modelData)
onClicked:
modelData === "back" ?
roomPane.toggleFocus() :
swipeView.currentIndex = Math.min(index, 1)
modelData === "back" ? roomPane.toggleFocus() :
modelData === "members" ? swipeView.currentIndex = 0 :
swipeView.currentIndex = 1
Behavior on width {
enabled: modelData === "back"