BulkActionsModalController.js 696 B

123456789101112131415161718192021222324
  1. /* eslint-disable
  2. max-len,
  3. no-return-assign,
  4. no-undef,
  5. */
  6. // TODO: This file was created by bulk-decaffeinate.
  7. // Fix any style issues and re-enable lint.
  8. /*
  9. * decaffeinate suggestions:
  10. * DS102: Remove unnecessary code created because of implicit returns
  11. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  12. */
  13. define(['base'], App =>
  14. App.controller('BulkActionsModalController', function(
  15. $scope,
  16. $modalInstance,
  17. isAccept,
  18. nChanges
  19. ) {
  20. $scope.isAccept = isAccept
  21. $scope.nChanges = nChanges
  22. $scope.cancel = () => $modalInstance.dismiss()
  23. return ($scope.confirm = () => $modalInstance.close(isAccept))
  24. }))