chore(chat/MembersSelector): display "no results" when not found
fixes: #7495
This commit is contained in:
parent
ed4ecb17bb
commit
3b866c2ff6
|
@ -199,7 +199,7 @@ Item {
|
||||||
parent: edit
|
parent: edit
|
||||||
x: (parent.contentWidth - Style.current.halfPadding)
|
x: (parent.contentWidth - Style.current.halfPadding)
|
||||||
y: (parent.height + Style.current.halfPadding)
|
y: (parent.height + Style.current.halfPadding)
|
||||||
visible: edit.text !== "" && root.suggestionsModel.count
|
visible: edit.text !== ""
|
||||||
padding: Style.current.halfPadding
|
padding: Style.current.halfPadding
|
||||||
background: StatusDialogBackground {
|
background: StatusDialogBackground {
|
||||||
id: bg
|
id: bg
|
||||||
|
@ -215,12 +215,23 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
StatusBaseText {
|
||||||
|
visible: root.suggestionsModel.count === 0
|
||||||
|
text: qsTr("No results found")
|
||||||
|
color: Theme.palette.baseColor1
|
||||||
|
}
|
||||||
|
|
||||||
StatusListView {
|
StatusListView {
|
||||||
id: suggestionsListView
|
id: suggestionsListView
|
||||||
anchors.fill: parent
|
visible: root.suggestionsModel.count
|
||||||
|
|
||||||
implicitWidth: contentItem.childrenRect.width
|
implicitWidth: contentItem.childrenRect.width
|
||||||
implicitHeight: contentItem.childrenRect.height
|
implicitHeight: contentItem.childrenRect.height
|
||||||
onVisibleChanged: currentIndex = 0
|
onVisibleChanged: currentIndex = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue