1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-21 12:29:03 +01:00

fix devise modal

This commit is contained in:
Sylvain 2021-03-24 15:51:02 +01:00
parent 78b007a9ec
commit b5e0572a6b

View File

@ -29,7 +29,7 @@
if (!promise) {
promise = $uibModal.open({
templateUrl: '/shared/deviseModal.html',
controller: function ($scope, $uibModalInstance) {
controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) {
const user = $scope.user = {};
$scope.login = function () {
$uibModalInstance.close(user);
@ -37,7 +37,7 @@
$scope.dismiss = function () {
$uibModalInstance.dismiss('cancel');
};
}
}]
}).result.finally(reset).then(Auth.login);
}
retryRequestAfterLogin();