aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/actions.js')
-rw-r--r--web/src/js/actions.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/web/src/js/actions.js b/web/src/js/actions.js
index 091ae6c3..83dcb801 100644
--- a/web/src/js/actions.js
+++ b/web/src/js/actions.js
@@ -77,7 +77,18 @@ var FlowActions = {
accept_all: function(){
jQuery.post("/flows/accept");
},
-
+ "delete": function(flow){
+ jQuery.ajax({
+ type:"DELETE",
+ url: "/flows/" + flow.id
+ });
+ },
+ duplicate: function(flow){
+ jQuery.post("/flows/" + flow.id + "/duplicate");
+ },
+ replay: function(flow){
+ jQuery.post("/flows/" + flow.id + "/replay");
+ },
update: function (flow) {
AppDispatcher.dispatchViewAction({
type: ActionTypes.FLOW_STORE,