From 05bf3d0502362ed45cf3089cff476209b70ba34e Mon Sep 17 00:00:00 2001 From: rgthree Date: Tue, 14 May 2024 23:53:09 -0400 Subject: [PATCH] dropped dep --- src_web/comfyui/dialog_info.ts | 16 ---------------- web/comfyui/dialog_info.js | 19 ++----------------- 2 files changed, 2 insertions(+), 33 deletions(-) diff --git a/src_web/comfyui/dialog_info.ts b/src_web/comfyui/dialog_info.ts index c1dc2a1..4e5cebf 100644 --- a/src_web/comfyui/dialog_info.ts +++ b/src_web/comfyui/dialog_info.ts @@ -16,7 +16,6 @@ import { } from "rgthree/common/media/svgs.js"; import { rgthreeApi } from "rgthree/common/rgthree_api.js"; import { RgthreeModelInfo } from "typings/rgthree.js"; -import { MenuButton } from "rgthree/common/menu.js"; import { SERVICE as MODEL_INFO_SERVICE } from "rgthree/common/model_info_service.js"; /** @@ -230,21 +229,6 @@ export class RgthreeInfoDialog extends RgthreeDialog { const div = $el("div", { html }); - setAttributes(queryOne('[stub="menu"]', div)!, { - children: [ - new MenuButton({ - icon: dotdotdot, - options: [ - { label: "More Actions", type: "title" }, - { - label: "Fetch info from civitai.com", - callback: async (e: PointerEvent) => {}, - }, - ], - }), - ], - }); - return div; } } diff --git a/web/comfyui/dialog_info.js b/web/comfyui/dialog_info.js index 665ae9f..0e1f465 100644 --- a/web/comfyui/dialog_info.js +++ b/web/comfyui/dialog_info.js @@ -1,8 +1,7 @@ import { RgthreeDialog } from "../../rgthree/common/dialog.js"; -import { createElement as $el, empty, appendChildren, getClosestOrSelf, queryOne, setAttributes, } from "../../rgthree/common/utils_dom.js"; -import { logoCivitai, link, pencilColored, diskColored, dotdotdot, } from "../../rgthree/common/media/svgs.js"; +import { createElement as $el, empty, appendChildren, getClosestOrSelf, queryOne, } from "../../rgthree/common/utils_dom.js"; +import { logoCivitai, link, pencilColored, diskColored, } from "../../rgthree/common/media/svgs.js"; import { rgthreeApi } from "../../rgthree/common/rgthree_api.js"; -import { MenuButton } from "../../rgthree/common/menu.js"; import { SERVICE as MODEL_INFO_SERVICE } from "../../rgthree/common/model_info_service.js"; export class RgthreeInfoDialog extends RgthreeDialog { constructor(file) { @@ -156,20 +155,6 @@ export class RgthreeInfoDialog extends RgthreeDialog { }).join("")) !== null && _q !== void 0 ? _q : ""} `; const div = $el("div", { html }); - setAttributes(queryOne('[stub="menu"]', div), { - children: [ - new MenuButton({ - icon: dotdotdot, - options: [ - { label: "More Actions", type: "title" }, - { - label: "Fetch info from civitai.com", - callback: async (e) => { }, - }, - ], - }), - ], - }); return div; } }