Skip to content

Commit a1f7763

Browse files
committed
Removes unneeded functions
1 parent 9173a1e commit a1f7763

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

src/webviews/apps/plus/focus/components/focus-app.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -365,24 +365,13 @@ export class GlFocusApp extends LitElement {
365365
this.searchText = value;
366366
}
367367

368-
async onShowMenu() {
369-
const menuEl: Popover | null = document.querySelector('gk-popover');
370-
if (menuEl) {
371-
await menuEl.showPopover();
372-
}
373-
}
374-
375-
onHideMenu() {
376-
const menuEl: Popover | null = document.querySelector('gk-popover');
377-
if (menuEl) {
378-
menuEl.hidePopover();
379-
}
380-
}
381-
382368
onSelectMineFilter(e: CustomEvent<{ target: MenuItem }>) {
383-
if (e.detail?.target?.dataset?.value != null) {
384-
this.selectedMineFilter = e.detail.target.dataset.value;
385-
this.onHideMenu();
369+
const target = e.detail?.target;
370+
if (target?.dataset?.value != null) {
371+
this.selectedMineFilter = target.dataset.value;
372+
373+
const menuEl: Popover | null = target.closest('gk-popover');
374+
menuEl?.hidePopover();
386375
}
387376
}
388377

0 commit comments

Comments
 (0)