Sfoglia il codice sorgente

Removes unneeded functions

main
Keith Daulton 1 anno fa
parent
commit
a1f776351f
1 ha cambiato i file con 6 aggiunte e 17 eliminazioni
  1. +6
    -17
      src/webviews/apps/plus/focus/components/focus-app.ts

+ 6
- 17
src/webviews/apps/plus/focus/components/focus-app.ts Vedi File

@ -365,24 +365,13 @@ export class GlFocusApp extends LitElement {
this.searchText = value;
}
async onShowMenu() {
const menuEl: Popover | null = document.querySelector('gk-popover');
if (menuEl) {
await menuEl.showPopover();
}
}
onHideMenu() {
const menuEl: Popover | null = document.querySelector('gk-popover');
if (menuEl) {
menuEl.hidePopover();
}
}
onSelectMineFilter(e: CustomEvent<{ target: MenuItem }>) {
if (e.detail?.target?.dataset?.value != null) {
this.selectedMineFilter = e.detail.target.dataset.value;
this.onHideMenu();
const target = e.detail?.target;
if (target?.dataset?.value != null) {
this.selectedMineFilter = target.dataset.value;
const menuEl: Popover | null = target.closest('gk-popover');
menuEl?.hidePopover();
}
}

Caricamento…
Annulla
Salva