mirror of
https://github.com/node-red/node-red
synced 2024-11-22 16:33:24 +00:00
add support of FLOW_ID & FLOW_NAME
This commit is contained in:
parent
75bcd9e8d5
commit
289815e128
@ -498,7 +498,13 @@ class Flow {
|
||||
* @return {[type]} [description]
|
||||
*/
|
||||
getSetting(key) {
|
||||
const flow = this.flow;
|
||||
const flow = this.flow;
|
||||
if (key === "FLOW_NAME") {
|
||||
return flow.label;
|
||||
}
|
||||
if (key === "FLOW_ID") {
|
||||
return flow.id;
|
||||
}
|
||||
if (flow.credentials === undefined) {
|
||||
flow.credentials = credentials.get(flow.id) || {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user