From: Grégoire Aubert Date: Thu, 9 Nov 2017 14:02:01 +0000 (+0100) Subject: SONAR-10056 Fix DB warning banner on the Quality Gates page X-Git-Tag: 7.0-RC1~310 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8770a266372578f3fa59056c73c14f22305c5b5;p=sonarqube.git SONAR-10056 Fix DB warning banner on the Quality Gates page --- diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatesApp.js b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatesApp.js index b756fee0c39..018715db8a5 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatesApp.js +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatesApp.js @@ -40,6 +40,17 @@ export default class QualityGatesApp extends Component { componentDidMount() { this.fetchQualityGates(); + const footer = document.getElementById('footer'); + if (footer) { + footer.classList.add('page-footer-with-sidebar'); + } + } + + componentWillUnmount() { + const footer = document.getElementById('footer'); + if (footer) { + footer.classList.remove('page-footer-with-sidebar'); + } } fetchQualityGates() {