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
ad7b5a9ff9
commit
6de288570c
|
@ -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