Setup pagy

This commit is contained in:
Nihal Mohammed
2021-06-23 14:44:03 +05:30
committed by Matt-Yorkley
parent 6e25dec617
commit e5bdaa603a
15 changed files with 203 additions and 40 deletions

View File

@@ -35,7 +35,7 @@ angular.module("admin.orders").controller "ordersCtrl", ($scope, $timeout, Reque
$scope.setDefaults()
$scope.fetchResults()
$scope.fetchResults = (page=1) ->
$scope.fetchResults = (page) ->
startDateWithTime = $scope.appendStringIfNotEmpty($scope.q?.completed_at_gteq, ' 00:00:00')
endDateWithTime = $scope.appendStringIfNotEmpty($scope.q?.completed_at_lteq, ' 23:59:59')