Adding Conditions done
This commit is contained in:
1 parent
d098f72629
commit
d2953a5b5a
1 file changed
+13
@@ -239,6 +239,19 @@ function newStrategy () {
|
||||
case 'Edit Code':
|
||||
|
||||
break
|
||||
|
||||
case 'Add Condition':
|
||||
{
|
||||
let situation = payload.node
|
||||
let m = situation.conditions.length
|
||||
let condition = {
|
||||
name: 'New Condition' + ' #' + (m + 1),
|
||||
code: ''
|
||||
}
|
||||
situation.conditions.push(condition)
|
||||
createPart('Condition', condition.name, condition, situation, situation, 'Condition' + ' #' + (m + 1))
|
||||
}
|
||||
break
|
||||
case 'Delete Phase': {
|
||||
deletePhase(payload.node)
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user