fix UpdateCheckBar image alt

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/4176/head
Michael Telatynski 2017-06-03 16:04:01 +01:00
parent a4c1aee5ea
commit 5981887705
1 changed files with 7 additions and 2 deletions

View File

@ -75,11 +75,16 @@ export default React.createClass({
}, },
render: function() { render: function() {
const imgSrc = this.state.done ? 'img/warning.svg' : 'img/spinner.gif'; let image;
if (this.state.done) {
image = <img className="mx_MatrixToolbar_warning" src="img/warning.svg" width="24" height="23" alt="/!\"/>;
} else {
image = <img className="mx_MatrixToolbar_warning" src="'img/spinner.gif'" width="24" height="23" alt={this.state.message}/>;
}
return ( return (
<div className="mx_MatrixToolbar"> <div className="mx_MatrixToolbar">
<img className="mx_MatrixToolbar_warning" src={imgSrc} width="24" height="23" alt="/!\"/> {image}
<div className="mx_MatrixToolbar_content"> <div className="mx_MatrixToolbar_content">
{this.state.message} {this.state.message}
</div> </div>