refactor: fix empty categories handling (#544)
* feat(StatusChatListCategory): display item if the model is a category * fix(StatusChatListAndCategories): do not display categories in StatusChatList
This commit is contained in:
parent
77b89edbdb
commit
d85ed4c3ed
|
@ -76,7 +76,7 @@ Item {
|
|||
draggableItems: statusChatListAndCategories.draggableItems
|
||||
model: statusChatListAndCategories.model
|
||||
filterFn: function (model) {
|
||||
return (model.subItems.count === 0)
|
||||
return !model.isCategory
|
||||
}
|
||||
popupMenu: statusChatListAndCategories.chatListPopupMenu
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ Column {
|
|||
StatusChatListCategoryItem {
|
||||
id: statusChatListCategoryItem
|
||||
title: statusChatListCategory.name
|
||||
visible: (model.subItems.count > 0)
|
||||
visible: model.isCategory
|
||||
opened: statusChatListCategory.opened
|
||||
sensor.pressAndHoldInterval: 150
|
||||
|
||||
|
|
Loading…
Reference in New Issue