mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-22 00:57:26 +00:00
Product Import Guide WIP
This commit is contained in:
@@ -26,12 +26,15 @@ angular.module("admin.productImport").controller "ImportOptionsFormCtrl", ($scop
|
||||
, true
|
||||
|
||||
$scope.toggleResetAbsent = (id) ->
|
||||
resetAbsent = $scope.settings[id]['reset_all_absent']
|
||||
checked = $scope.settings[id]['reset_all_absent']
|
||||
confirmed = confirm t('js.product_import.confirmation') if resetAbsent
|
||||
|
||||
if confirmed or !resetAbsent
|
||||
if confirmed or !checked
|
||||
ProductImportService.updateResetAbsent($scope.supplierId, $scope.reset_counts[$scope.supplierId], resetAbsent)
|
||||
|
||||
if !confirmed and checked
|
||||
$scope.settings[id]['reset_all_absent'] = false
|
||||
|
||||
$scope.resetTotal = ProductImportService.resetTotal
|
||||
|
||||
$rootScope.$watch 'resetTotal', (newValue) ->
|
||||
|
||||
Reference in New Issue
Block a user