mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-12 09:06:05 +08:00
refactor: clear searach result after close
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -191,6 +191,7 @@ export default {
|
|||||||
|
|
||||||
closeSearch() {
|
closeSearch() {
|
||||||
this.showSearch = false;
|
this.showSearch = false;
|
||||||
|
this.searchAddon?.clearDecorations();
|
||||||
this.terminal?.focus();
|
this.terminal?.focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -212,6 +213,8 @@ export default {
|
|||||||
|
|
||||||
onSearchInput() {
|
onSearchInput() {
|
||||||
if (!this.searchQuery) {
|
if (!this.searchQuery) {
|
||||||
|
this.searchAddon?.clearDecorations();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user