mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
callback whenever closing modal
This commit is contained in:
parent
f46a6aefea
commit
444f63db42
@ -91,7 +91,18 @@
|
||||
}).$promise;
|
||||
}
|
||||
|
||||
var closing = false;
|
||||
$scope.close = function () {
|
||||
closing = true;
|
||||
$uibModalInstance.close($scope.enabled);
|
||||
};
|
||||
|
||||
$scope.$on('modal.closing', function (e, reason, closed) {
|
||||
if (closing) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
$scope.close();
|
||||
});
|
||||
});
|
||||
|
@ -75,7 +75,18 @@
|
||||
};
|
||||
}
|
||||
|
||||
var closing = false;
|
||||
$scope.close = function () {
|
||||
closing = true;
|
||||
$uibModalInstance.close($scope.enabled);
|
||||
};
|
||||
|
||||
$scope.$on('modal.closing', function (e, reason, closed) {
|
||||
if (closing) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
$scope.close();
|
||||
});
|
||||
});
|
||||
|
@ -97,7 +97,18 @@
|
||||
}).$promise;
|
||||
}
|
||||
|
||||
var closing = false;
|
||||
$scope.close = function () {
|
||||
closing = true;
|
||||
$uibModalInstance.close($scope.enabled);
|
||||
};
|
||||
|
||||
$scope.$on('modal.closing', function (e, reason, closed) {
|
||||
if (closing) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
$scope.close();
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
@ -99,7 +99,18 @@
|
||||
return str;
|
||||
}
|
||||
|
||||
var closing = false;
|
||||
$scope.close = function () {
|
||||
closing = true;
|
||||
$uibModalInstance.close($scope.enabled);
|
||||
};
|
||||
|
||||
$scope.$on('modal.closing', function (e, reason, closed) {
|
||||
if (closing) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
$scope.close();
|
||||
});
|
||||
});
|
||||
|
@ -38,7 +38,7 @@
|
||||
</p>
|
||||
<p>Supported platforms:</p>
|
||||
<ul>
|
||||
<li>Web vault on a device with a USB port.</li>
|
||||
<li>Web vault on a device with a USB port that can accept your YubiKey.</li>
|
||||
<li>Browser extensions.</li>
|
||||
<li>
|
||||
Android on a device with
|
||||
|
Loading…
Reference in New Issue
Block a user