File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,15 @@ module.exports = {
106106 ] ,
107107 callback : async function ( action ) {
108108 let options = action . options
109- self . selectedDestination = options . destination
109+ let destination = options . destination
110+ self . selectedDestination = destination
111+
112+ //get the name from CHOICES_DESTINATIONS based on the ID
113+ let destination_name = self . CHOICES_DESTINATIONS . find ( ( element ) => element . id == destination ) . label
110114
111115 let variableObj = { }
112- variableObj . destination = options . destination
116+ variableObj . destination = destination
117+ variableObj . destination_name = destination_name
113118 self . setVariableValues ( variableObj )
114119 } ,
115120 }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = {
44 let variables = [ ]
55
66 variables . push ( { variableId : `destination` , name : `Selected Destination` } )
7+ variables . push ( { variableId : `destination_name` , name : `Selected Destination Name` } )
78
89 self . setVariableDefinitions ( variables )
910 } ,
You can’t perform that action at this time.
0 commit comments