summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-06-09 23:52:28 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-06-09 23:52:28 +0200
commit2cd1a931c28d0fd8e8755e9622a7d8f56d1a24a0 (patch)
treeafb784e8479553904b64fe49abea031c6ff09879 /resources
parentImplement switching in narrow mode (diff)
downloadnheko-2cd1a931c28d0fd8e8755e9622a7d8f56d1a24a0.tar.xz
Basic community list model
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/RoomList.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml

index 21973b77..a6637467 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml
@@ -43,12 +43,10 @@ Page { property string roomid property var tags - property var allTags function show(roomid_, tags_) { roomid = roomid_; tags = tags_; - allTags = Rooms.tags(); open(); } @@ -72,7 +70,7 @@ Page { } Instantiator { - model: roomContextMenu.allTags + model: Communities.tags onObjectAdded: roomContextMenu.insertItem(index + 2, object) onObjectRemoved: roomContextMenu.removeItem(object) @@ -92,7 +90,7 @@ Page { } } checkable: true - checked: roomContextMenu.tags.includes(t) + checked: roomContextMenu.tags !== undefined && roomContextMenu.tags.includes(t) onTriggered: Rooms.toggleTag(roomContextMenu.roomid, t, checked) }