From 776b495d21c108c7125c96aaa15d6b36106a6f39 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Wed, 19 Jun 2019 17:01:07 +0200 Subject: [PATCH] SONAR-12142 Authorization error not displayed correctly on login form --- .../sonar-web/src/main/js/apps/sessions/components/Login.tsx | 3 +++ .../src/main/js/apps/sessions/components/LoginForm.tsx | 3 --- .../components/__tests__/__snapshots__/Login-test.tsx.snap | 2 ++ .../components/__tests__/__snapshots__/LoginForm-test.tsx.snap | 3 --- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx b/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx index 96d4edcf1ae..2e497e0ca29 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx +++ b/server/sonar-web/src/main/js/apps/sessions/components/Login.tsx @@ -20,6 +20,7 @@ import * as React from 'react'; import LoginForm from './LoginForm'; import OAuthProviders from './OAuthProviders'; +import GlobalMessagesContainer from '../../../app/components/GlobalMessagesContainer'; import { translate } from '../../../helpers/l10n'; import './Login.css'; @@ -34,6 +35,8 @@ export default function Login({ identityProviders, onSubmit, returnTo }: Props)

{translate('login.login_to_sonarqube')}

+ + {identityProviders.length > 0 && ( )} diff --git a/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx b/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx index c20f6a5942c..2fa113117de 100644 --- a/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx +++ b/server/sonar-web/src/main/js/apps/sessions/components/LoginForm.tsx @@ -19,7 +19,6 @@ */ import * as React from 'react'; import DeferredSpinner from '../../../components/common/DeferredSpinner'; -import GlobalMessagesContainer from '../../../app/components/GlobalMessagesContainer'; import { SubmitButton } from '../../../components/ui/buttons'; import { translate } from '../../../helpers/l10n'; import { getBaseUrl } from '../../../helpers/urls'; @@ -87,8 +86,6 @@ export default class LoginForm extends React.PureComponent { } return (
- -