Skip to content
Snippets Groups Projects
Unverified Commit c3fd4026 authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Merge pull request #1571 from Nheko-Reborn/directory

Add close button and room open button to room directory dialog
parents 214e3186 b6f71a8b
No related branches found
No related tags found
No related merge requests found
Pipeline #5114 passed
......@@ -112,9 +112,17 @@ ApplicationWindow {
Layout.row: 1
Layout.column: 1
id: joinRoomButton
enabled: model.canJoin
text: "Join"
onClicked: publicRooms.joinRoom(model.index)
enabled: model.roomid !== ""
text: model.canJoin ? qsTr("Join") : qsTr("Open")
onClicked: {
if (model.canJoin)
publicRooms.joinRoom(model.index);
else
{
Rooms.setCurrentRoom(model.roomid);
roomDirectoryWindow.close();
}
}
}
}
......@@ -184,4 +192,16 @@ ApplicationWindow {
}
footer: RowLayout {
spacing: Nheko.paddingMedium
width: parent.width
Button {
text: qsTr("Close")
onClicked: roomDirectoryWindow.close()
Layout.alignment: Qt.AlignRight
Layout.margins: Nheko.paddingMedium
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment