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:
parent
9e21b8664f
commit
444894a642
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue