mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
add support for env var access of GROUP_ID & GROUP_NAME
This commit is contained in:
parent
0ad60013aa
commit
8b23d341b4
@ -424,6 +424,17 @@ class Flow {
|
||||
*/
|
||||
getGroupEnvSetting(node, group, name) {
|
||||
if (group) {
|
||||
if (name === "GROUP_NAME") {
|
||||
return [{
|
||||
val: group.name
|
||||
}, null];
|
||||
}
|
||||
if (name === "GROUP_ID") {
|
||||
return [{
|
||||
val: group.id
|
||||
}, null];
|
||||
}
|
||||
|
||||
if (group.credentials === undefined) {
|
||||
group.credentials = credentials.get(group.id) || {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user