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:
parent
78b007a9ec
commit
b5e0572a6b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user