Skip to content

Commit

Permalink
fix simple modal service (#4505)
Browse files Browse the repository at this point in the history
  • Loading branch information
kflemin authored Jan 26, 2024
1 parent a3a7e46 commit ff1ce82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seed/static/seed/js/services/simple_modal_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ angular.module('BE.seed.service.simple_modal', []).factory('simple_modal_service
// Map modal.html $scope custom properties to defaults defined in service
angular.extend(tempModalOptions, modalOptions, customModalOptions);

tempModalDefaults.controller = ($scope, $uibModalInstance) => {
tempModalDefaults.controller = ['$scope', '$uibModalInstance', ($scope, $uibModalInstance) => {
$scope.modalOptions = tempModalOptions;
$scope.modalOptions.ok = () => {
$uibModalInstance.close(tempModalOptions.okResult);
};
$scope.modalOptions.cancel = () => {
$uibModalInstance.dismiss('cancel');
};
};
}];

return $uibModal.open(tempModalDefaults).result;
};
Expand Down

0 comments on commit ff1ce82

Please sign in to comment.