Product Import Guide WIP

This commit is contained in:
Matt-Yorkley
2018-02-03 19:29:31 +00:00
parent 7da97be7d2
commit b42e3eb2c9
10 changed files with 325 additions and 4 deletions

View File

@@ -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) ->