Skip to content

Commit

Permalink
Include phone number as variable for external step
Browse files Browse the repository at this point in the history
External step setting implementation was hiding the superclass
variables list, which included the ReadVariables, which contain
the phone number.
  • Loading branch information
spalladino committed Oct 28, 2016
1 parent a8163bf commit 6d3a3e3
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@ onWorkflow ->
display_name: @display_name
}

content_kinds: () =>
return [{text: 'Variable', value: 'variable'},
{text: 'Step', value: 'step'},
{text: 'Response', value: 'response'},
{text: 'Value', value: 'value'}]

available_variables: () =>
workflow.all_variables().sort()

available_steps: () =>
{name: step.name(), value: step.id} for step in workflow.steps() when (step.type() == 'capture') || (step.type() == 'menu')

available_responses: () =>
_.flatten({name: "#{step.name()} - #{variable.display_name}", value: "#{step.id}_#{variable.name}"} for variable in step.response_variables() for step in workflow.steps() when step.response_variables?)

on_step_removed: (step) =>
@step_id(null) if step.id == parseInt(@step_id())
@response(null) if step.id == parseInt(@response()) # Note that parseInt("123_resp") == "123"

description: () =>
desc = super()
if desc? then "(#{desc})" else null
Expand Down

0 comments on commit 6d3a3e3

Please sign in to comment.