Skip to content

Commit

Permalink
wc: Allow to apply a previously executed query from history #TASK-721…
Browse files Browse the repository at this point in the history
…6 #TASK-7100
  • Loading branch information
jmjuanes committed Jan 15, 2025
1 parent ed0606d commit d50e9d9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ export default class VariantBrowserHorizontalFilter extends LitElement {
this.requestUpdate();
}

onApplyQuery(query) {
onApplyQuery(event, query) {
// event.preventDefault();
this.preparedQuery = UtilsNew.objectClone(query || {});
this.notifySearch(this.preparedQuery);
this.updateHistory();
}

onSearch() {
Expand Down Expand Up @@ -891,7 +895,7 @@ export default class VariantBrowserHorizontalFilter extends LitElement {
.join("<br>");

return html`
<a class="dropdown-item cursor-pointer" @click="${e => this.onFilterChange(e, item.query)}">
<a class="dropdown-item cursor-pointer" @click="${e => this.onApplyQuery(e, item.query)}">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="text-truncate">
Expand Down

0 comments on commit d50e9d9

Please sign in to comment.