From ac3325c320e536f33dfee9d386dde832389b8fec Mon Sep 17 00:00:00 2001 From: tritant Date: Wed, 24 Sep 2025 02:07:43 +0200 Subject: [PATCH] add muter node --- js/orchestratormuter.js | 4 ++-- js/orchestratortoogle.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/orchestratormuter.js b/js/orchestratormuter.js index f5c88c5..9553294 100644 --- a/js/orchestratormuter.js +++ b/js/orchestratormuter.js @@ -35,7 +35,7 @@ app.registerExtension({ const groupID = groupIDWidget.value; if (!groupID) return; - this.widgets = this.widgets.filter(w => w.name === "group_id"); + this.widgets = this.widgets.filter(w => w.name === "group_id" || w.name === "🔄 Scan for new tag"); const discoveredTags = new Set(); const regex = /\[\[(.*?):(.*?)\]\]/g; @@ -83,7 +83,7 @@ app.registerExtension({ "DEFAULT", discoverAndBuildUI ); - + this.addWidget("button", "🔄 Scan for new tag", null, discoverAndBuildUI); setTimeout(() => discoverAndBuildUI(), 100); }; } diff --git a/js/orchestratortoogle.js b/js/orchestratortoogle.js index a93bc70..4a0ba72 100644 --- a/js/orchestratortoogle.js +++ b/js/orchestratortoogle.js @@ -35,7 +35,7 @@ app.registerExtension({ const groupID = groupIDWidget.value; if (!groupID) return; - this.widgets = this.widgets.filter(w => w.name === "group_id"); + this.widgets = this.widgets.filter(w => w.name === "group_id" || w.name === "🔄 Scan for new tag"); const discoveredTags = new Set(); const regex = /\[\[(.*?):(.*?)\]\]/g; @@ -83,7 +83,7 @@ app.registerExtension({ "DEFAULT", discoverAndBuildUI ); - + this.addWidget("button", "🔄 Scan for new tag", null, discoverAndBuildUI); setTimeout(() => discoverAndBuildUI(), 100); }; }