diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-11-09 15:02:01 +0100 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-11-20 08:28:17 +0100 |
commit | f8770a266372578f3fa59056c73c14f22305c5b5 (patch) | |
tree | ef3639f88ce62867a3d59f92343753209d491149 /server | |
parent | da112ac51de57fa8b4684eb13d1eebd555a4a593 (diff) | |
download | sonarqube-f8770a266372578f3fa59056c73c14f22305c5b5.tar.gz sonarqube-f8770a266372578f3fa59056c73c14f22305c5b5.zip |
SONAR-10056 Fix DB warning banner on the Quality Gates page
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatesApp.js | 11 |
1 files changed, 11 insertions, 0 deletions
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() { |