From f8770a266372578f3fa59056c73c14f22305c5b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Thu, 9 Nov 2017 15:02:01 +0100 Subject: [PATCH] SONAR-10056 Fix DB warning banner on the Quality Gates page --- .../apps/quality-gates/components/QualityGatesApp.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() { -- 2.39.5