浏览代码

Removes unneeded functions

main
Keith Daulton 1年前
父节点
当前提交
a1f776351f
共有 1 个文件被更改,包括 6 次插入17 次删除
  1. +6
    -17
      src/webviews/apps/plus/focus/components/focus-app.ts

+ 6
- 17
src/webviews/apps/plus/focus/components/focus-app.ts 查看文件

@ -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();
}
}

正在加载...
取消
保存