mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Rewrite credentials API to work with save on deploy.
This commit is contained in:
@@ -92,6 +92,14 @@ var RED = function() {
|
||||
node.dirty = true;
|
||||
node.changed = false;
|
||||
}
|
||||
if(node._creds) {
|
||||
delete node._creds;
|
||||
}
|
||||
});
|
||||
RED.nodes.eachConfig(function (confNode) {
|
||||
if (confNode._creds) {
|
||||
delete confNode._creds;
|
||||
}
|
||||
});
|
||||
// Once deployed, cannot undo back to a clean state
|
||||
RED.history.markAllDirty();
|
||||
|
Reference in New Issue
Block a user