Click on account with 0 rooms → AddChat page

This commit is contained in:
miruka 2020-05-01 18:34:23 -04:00
parent 5373d19c83
commit 4f9e320074
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,7 @@ HButton {
property real contentOpacity: 1 property real contentOpacity: 1
property alias contextMenu: contextMenuLoader.sourceComponent property alias contextMenu: contextMenuLoader.sourceComponent
readonly property alias contextMenuLoader: contextMenuLoader
Behavior on topPadding { HNumberAnimation {} } Behavior on topPadding { HNumberAnimation {} }

View File

@ -92,7 +92,11 @@ HColumnLayout {
contextMenu: AccountContextMenu { userId: model.id } contextMenu: AccountContextMenu { userId: model.id }
onLeftClicked: roomList.goToAccount(model.id) onLeftClicked: {
model.id in roomList.sectionIndice ?
roomList.goToAccount(model.id) :
pageLoader.showPage("AddChat/AddChat", {userId: model.id})
}
} }
Layout.fillWidth: true Layout.fillWidth: true