Allow editing rule exitActions

pull/1070/head
Michael Zanetti 2023-10-14 20:42:01 +02:00
parent c41e31f2f1
commit ebf4ebb9b2
1 changed files with 9 additions and 0 deletions

View File

@ -702,6 +702,15 @@ Page {
implicitWidth: parent.width
ruleAction: root.rule.exitActions.get(index)
onRemoveRuleAction: root.rule.exitActions.removeRuleAction(index)
onClicked: {
var ruleActionPage = pageStack.push(Qt.resolvedUrl("SelectRuleActionPage.qml"), {text: "Select action", ruleAction: ruleAction, rule: root.rule });
ruleActionPage.onBackPressed.connect(function() {
pageStack.pop();
})
ruleActionPage.onDone.connect(function() {
pageStack.pop(root);
})
}
}
}