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