1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add note of removed flows in diffConfig (#1253)

This commit is contained in:
btsimonh 2017-05-11 15:39:41 +01:00 committed by Nick O'Leary
parent 7730d0a4f8
commit c0eabf0438

View File

@ -204,6 +204,13 @@ module.exports = {
var changedTabs = {}; var changedTabs = {};
// Look for tabs that have been removed
for (id in oldConfig.flows) {
if (oldConfig.flows.hasOwnProperty(id) && (!newConfig.flows.hasOwnProperty(id))) {
removed[id] = oldConfig.allNodes[id];
}
}
// Look for tabs that have been disabled // Look for tabs that have been disabled
for (id in oldConfig.flows) { for (id in oldConfig.flows) {
if (oldConfig.flows.hasOwnProperty(id) && newConfig.flows.hasOwnProperty(id)) { if (oldConfig.flows.hasOwnProperty(id) && newConfig.flows.hasOwnProperty(id)) {