mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-01-31 08:20:24 +08:00
fix restart required status if open dialog again
This commit is contained in:
parent
4b158f6913
commit
98153ed4c8
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user