mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-16 04:24:23 +00:00
Individual StandingOrder orders can be cancelled from Standing Order index
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
angular.module("admin.standingOrders").controller "OrdersPanelController", ($scope, OrderCycles) ->
|
||||
$scope.standingOrder = $scope.object
|
||||
$scope.orderCyclesByID = OrderCycles.byID
|
||||
|
||||
$scope.cancelOrder = (order) ->
|
||||
if confirm(t('are_you_sure'))
|
||||
$scope.standingOrder.cancelOrder(order)
|
||||
|
||||
Reference in New Issue
Block a user