Compare commits

...

1 Commits

Author SHA1 Message Date
Bruno Windels 336bd04349 use brand instead of Riot string 2020-06-26 15:05:56 +02:00
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ export default class VectorAuthHeaderLogo extends React.PureComponent {
} }
render() { render() {
const brand = SdkConfig.get().brand || "Riot";
const brandingConfig = SdkConfig.get().branding; const brandingConfig = SdkConfig.get().branding;
let logoUrl = "themes/riot/img/logos/riot-im-logo-black-text.svg"; let logoUrl = "themes/riot/img/logos/riot-im-logo-black-text.svg";
if (brandingConfig && brandingConfig.authHeaderLogoUrl) { if (brandingConfig && brandingConfig.authHeaderLogoUrl) {
@ -37,7 +38,7 @@ export default class VectorAuthHeaderLogo extends React.PureComponent {
return ( return (
<div className="mx_AuthHeaderLogo"> <div className="mx_AuthHeaderLogo">
<img src={logoUrl} alt="Riot" /> <img src={logoUrl} alt={brand} />
</div> </div>
); );
} }