Reinitialize page params when changing order cycle

This commit is contained in:
Jean-Baptiste Bellet
2021-04-23 20:45:00 +02:00
parent 523b957ba7
commit cdbcbf4214

View File

@@ -22,6 +22,7 @@ Darkswarm.controller "ProductsCtrl", ($scope, $sce, $filter, $rootScope, Product
$rootScope.$on "orderCycleSelected", ->
$scope.update_filters()
$scope.clearAll()
$scope.page = 1
$scope.update_filters = ->
order_cycle_id = OrderCycle.order_cycle.order_cycle_id