mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-07 07:36:58 +00:00
Only call confirmRefresh() on time, on date range change
Previously, when changing the date range, we had several modals that opened. Now, the `confirmRefresh()` method should be open only one time. Update specs as well: - use the method `accept_confirm` - Removing pending and sleep as the spec is now green
This commit is contained in:
@@ -38,6 +38,8 @@ angular.module("admin.lineItems").controller 'LineItemsCtrl', ($scope, $timeout,
|
||||
|
||||
return unless moment($scope.formattedStartDate).isValid() and moment($scope.formattedEndDate).isValid()
|
||||
|
||||
return unless $scope.confirmRefresh()
|
||||
|
||||
$scope.loadOrders()
|
||||
$scope.loadLineItems()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user