mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
callback whenever closing modal
This commit is contained in:
@@ -102,10 +102,16 @@
|
||||
}
|
||||
|
||||
$scope.close = function () {
|
||||
closed = true;
|
||||
$uibModalInstance.close($scope.enabled);
|
||||
};
|
||||
|
||||
$scope.$on('modal.closing', function (event) {
|
||||
closed = true;
|
||||
$scope.$on('modal.closing', function (e, reason, isClosed) {
|
||||
if (closed) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
$scope.close();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user