fix restart required status if open dialog again

This commit is contained in:
cenfun 2024-06-06 11:34:14 +08:00
parent 4b158f6913
commit 98153ed4c8

View File

@ -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;