Adding a #resume action to StandingOrderOrdersController

This commit is contained in:
Rob Harrington
2016-12-02 16:05:41 +11:00
parent fc463fd608
commit d1ca9a6e14
4 changed files with 71 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ angular.module("admin.standingOrders").controller "OrdersPanelController", ($sco
if confirm(t('are_you_sure'))
$scope.standingOrder.cancelOrder(order)
$scope.resumeOrder = (order) ->
if confirm(t('are_you_sure'))
$scope.standingOrder.resumeOrder(order)
$scope.orderCycleName = (id) ->
OrderCycles.byID[id].name