mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 04:44:22 +03:00
fix UpdateCheckBar image alt
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a4c1aee5ea
commit
5981887705
1 changed files with 7 additions and 2 deletions
|
@ -75,11 +75,16 @@ export default React.createClass({
|
|||
},
|
||||
|
||||
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 (
|
||||
<div className="mx_MatrixToolbar">
|
||||
<img className="mx_MatrixToolbar_warning" src={imgSrc} width="24" height="23" alt="/!\"/>
|
||||
{image}
|
||||
<div className="mx_MatrixToolbar_content">
|
||||
{this.state.message}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue