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
1 changed files with 7 additions and 0 deletions

View File

@ -203,6 +203,13 @@ module.exports = {
var linkMap = {};
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
for (id in oldConfig.flows) {