diff --git a/app/ui/footer.js b/app/ui/footer.js index bd332896..77a2b960 100644 --- a/app/ui/footer.js +++ b/app/ui/footer.js @@ -65,6 +65,45 @@ class Footer extends Component { `); } + // Defining a custom footer + var footer = []; + if (this.state != undefined && this.state.WEB_UI != undefined) { + const WEB_UI = this.state.WEB_UI; + + if (WEB_UI.CUSTOM_FOOTER_URL != '' && WEB_UI.CUSTOM_FOOTER_TEXT != '') { + footer.push(html` +
  • + + ${WEB_UI.CUSTOM_FOOTER_TEXT} + +
  • + `); + } + else if (WEB_UI.CUSTOM_FOOTER_URL != '') { + footer.push(html` +
  • + + ${WEB_UI.CUSTOM_FOOTER_URL} + +
  • + `); + } + else if (WEB_UI.CUSTOM_FOOTER_TEXT != '') { + footer.push(html` +
  • + ${WEB_UI.CUSTOM_FOOTER_TEXT} +
  • + `) + } + else { + footer.push(html` +
  • + ${translate('footerText')} +
  • + `); + } + } + return html`