diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-25 16:53:22 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-30 09:20:37 +0100 |
commit | e4ef72e885308b113d89a7826d1b300c093134cf (patch) | |
tree | d747d066447c0924cf2cfb108bf107a8effd0144 /server/sonar-web/src/main/js/app/components/help | |
parent | eea79d51b8894ef98f1cd02388d06062df343e4d (diff) | |
download | sonarqube-e4ef72e885308b113d89a7826d1b300c093134cf.tar.gz sonarqube-e4ef72e885308b113d89a7826d1b300c093134cf.zip |
update web dependencies (#2752)
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/help')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/help/GlobalHelp.js | 3 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/app/components/help/GlobalHelp.js b/server/sonar-web/src/main/js/app/components/help/GlobalHelp.js index 9df12c7801c..43f4616f8b8 100644 --- a/server/sonar-web/src/main/js/app/components/help/GlobalHelp.js +++ b/server/sonar-web/src/main/js/app/components/help/GlobalHelp.js @@ -90,7 +90,8 @@ export default class GlobalHelp extends React.PureComponent { <ul className="side-tabs-menu"> {(this.props.currentUser.isLoggedIn ? ['shortcuts', 'tutorials', 'links'] - : ['shortcuts', 'links']).map(this.renderMenuItem)} + : ['shortcuts', 'links'] + ).map(this.renderMenuItem)} </ul> ); diff --git a/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap b/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap index e9a2ed0ec03..5aaa41aa5f8 100644 --- a/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap +++ b/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap @@ -12,7 +12,9 @@ exports[`does not show tutorials for anonymous 1`] = ` overlayClassName="modal-overlay" parentSelector={[Function]} portalClassName="ReactModalPortal" + shouldCloseOnEsc={true} shouldCloseOnOverlayClick={true} + shouldFocusAfterRender={true} > <div className="modal-head" @@ -30,7 +32,9 @@ exports[`does not show tutorials for anonymous 1`] = ` <ul className="side-tabs-menu" > - <li> + <li + key="shortcuts" + > <a className="active" data-section="shortcuts" @@ -40,7 +44,9 @@ exports[`does not show tutorials for anonymous 1`] = ` help.section.shortcuts </a> </li> - <li> + <li + key="links" + > <a className="" data-section="links" |