Clear debug message when switching projects (#1523)

* Clear debug sidebar when switching project

* Delete a unnecessary comment

* Clear any filters the users has enabled

* Clear filter settings only when the user opens a project
This commit is contained in:
Hideki Nakamura
2018-01-06 01:13:02 +09:00
committed by Nick O'Leary
parent 5a6cde1446
commit 207d3d3340
4 changed files with 41 additions and 7 deletions

View File

@@ -910,7 +910,9 @@ RED.projects = (function() {
}
}
}
},projectData).always(function() {
},projectData).then(function() {
RED.events.emit("project:change", {name:name});
}).always(function() {
RED.deploy.setDeployInflight(false);
})
@@ -1075,7 +1077,9 @@ RED.projects = (function() {
}
},
}
},{active:true}).always(function() {
},{active:true}).then(function() {
RED.events.emit("project:change", {name:name});
}).always(function() {
RED.deploy.setDeployInflight(false);
})
}