From 53fcf7f428d8d7ef2390f5877fe8f682ba9971d3 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 30 May 2021 12:41:44 +0200 Subject: Port remaining sidebar actions to qml --- resources/qml/RoomList.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'resources/qml/RoomList.qml') diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index c5e07032..3109b75c 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -477,6 +477,7 @@ Page { image: ":/icons/icons/ui/power-button-off.png" ToolTip.visible: hovered ToolTip.text: qsTr("Logout") + onClicked: Nheko.openLogoutDialog() } } @@ -523,6 +524,23 @@ Page { ToolTip.visible: hovered ToolTip.text: qsTr("Start a new chat") Layout.margins: Nheko.paddingMedium + + onClicked: roomJoinCreateMenu.open(parent) + + Platform.Menu { + id: roomJoinCreateMenu + + Platform.MenuItem { + text: qsTr("Join a room") + onTriggered: Nheko.openJoinRoomDialog() + } + + Platform.MenuItem { + text: qsTr("Create a new room") + onTriggered: Nheko.openCreateRoomDialog() + } + + } } ImageButton { @@ -545,6 +563,7 @@ Page { ToolTip.visible: hovered ToolTip.text: qsTr("User settings") Layout.margins: Nheko.paddingMedium + onClicked: Nheko.showUserSettingsPage() } } -- cgit 1.5.1