fix(StatusSearchPopup): reset search location

New `resetSearchLocationClicked` signal introduced.

Click on `X` button is emitting `resetSearchLocationClicked` signal and
lets a component which is using this one to decide what to do instead just
reseting search selection locally to this component.

Needed for https://github.com/status-im/status-desktop/issues/6551
This commit is contained in:
Sale Djenic 2022-07-25 13:15:38 +02:00 committed by Michał Cieślak
parent 9e21b8664f
commit 444894a642
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ StatusModal {
signal resultItemClicked(string itemId)
signal resultItemTitleClicked(string titleId)
signal resetSearchLocationClicked()
property var formatTimestampFn: function (ts) {
return ts
@ -248,7 +249,7 @@ StatusModal {
type: StatusFlatRoundButton.Type.Secondary
icon.name: "close"
icon.color: Theme.palette.directColor1
onClicked: { root.resetSearchSelection(); }
onClicked: { root.resetSearchLocationClicked(); }
}
}
StatusMenuSeparator {