@@ -19,18 +19,19 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
title: i18n("Explore Rooms")
|
title: i18n("Explore Rooms")
|
||||||
|
|
||||||
|
Component.onCompleted: identifierField.forceActiveFocus()
|
||||||
|
|
||||||
header: Control {
|
header: Control {
|
||||||
padding: Kirigami.Units.largeSpacing
|
padding: Kirigami.Units.largeSpacing
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
Kirigami.SearchField {
|
Kirigami.SearchField {
|
||||||
|
id: identifierField
|
||||||
property bool isRoomAlias: text.match(/#(.+):(.+)/g)
|
property bool isRoomAlias: text.match(/#(.+):(.+)/g)
|
||||||
property var room: isRoomAlias ? connection.roomByAlias(text) : null
|
property var room: isRoomAlias ? connection.roomByAlias(text) : null
|
||||||
property bool isJoined: room != null
|
property bool isJoined: room != null
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
id: identifierField
|
|
||||||
|
|
||||||
placeholderText: i18n("Find a room...")
|
placeholderText: i18n("Find a room...")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user