1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Time Offset Widget: fix label #208

This commit is contained in:
Laura Fuentes Grau 2020-12-13 14:57:39 +01:00
parent cf05ab9564
commit 04ebd23d8f

View file

@ -49,6 +49,7 @@ class WidgetTimeOffset extends Component {
}
render() {
let bottomText = this.props.widget.customProperties.icID !== -1 ? "" : "selected";
return (
<div className="time-offset">
{this.props.widget.customProperties.icID !== -1 ?
@ -63,7 +64,7 @@ class WidgetTimeOffset extends Component {
(
<span>{this.state.timeOffset}s</span>)
:
(<span>selected</span>)
(<span>{bottomText}</span>)
}
</div>
);