Replacing loading dialog from ohif:user login page

This commit is contained in:
Bruno Alves de Faria committed 2017-03-27 15:08:58 -03:00
1 parent 43ce7857fc
commit cc76eab078
3 files changed
+27 -7

No files matched your search

@@ -36,13 +36,7 @@ Template.userLogin.onCreated(() => {
};
// Call the login method
const promise = OHIF.user.login(formData).then(successHandler).catch(errorHandler);
// Display loading state
OHIF.ui.showDialog('dialogLoading', {
text: 'Signing in...',
promise
});
return OHIF.user.login(formData).then(successHandler).catch(errorHandler);
}
};