From 98153ed4c88fb4bbd26ecfa3359114d44d44b179 Mon Sep 17 00:00:00 2001 From: cenfun Date: Thu, 6 Jun 2024 11:34:14 +0800 Subject: [PATCH] fix restart required status if open dialog again --- js/custom-nodes-manager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/custom-nodes-manager.js b/js/custom-nodes-manager.js index 6f700e10..81ad8fcc 100644 --- a/js/custom-nodes-manager.js +++ b/js/custom-nodes-manager.js @@ -321,6 +321,7 @@ export class CustomNodesManager { this.filter = ''; this.keywords = ''; + this.restartMap = {}; this.init(); } @@ -959,6 +960,7 @@ export class CustomNodesManager { this.grid.setRowSelected(item, false); item.restart = true; + this.restartMap[item.hash] = true; this.grid.updateCell(item, "installed"); //console.log(res.data); @@ -1254,6 +1256,9 @@ export class CustomNodesManager { } custom_nodes.forEach(nodeItem => { + if (this.restartMap[nodeItem.hash]) { + nodeItem.restart = true; + } const filterTypes = new Set(); this.filterList.forEach(filterItem => { const { value, hashMap } = filterItem;