Merge branch 'dev' of lab.si.usi.ch:sa4-2020/the-sanmarinoes/frontend into 72-7-users-can-invite-guests
This commit is contained in:
commit
74a5e49776
2 changed files with 3 additions and 2 deletions
|
@ -98,7 +98,7 @@ class DeviceSettingsModal extends Component {
|
|||
deleteDevice() {
|
||||
this.props
|
||||
.deleteDevice(this.props.device)
|
||||
.then(() => this.setState({ open: false }))
|
||||
.then(() => this.setState({ openModal: false }))
|
||||
.catch((err) =>
|
||||
console.error(
|
||||
`settings modal for device ${this.props.id} deletion error`,
|
||||
|
|
|
@ -153,7 +153,8 @@ class Thermostats extends Component {
|
|||
<div style={targetTemperature}>
|
||||
<Icon name="thermometer half" />{" "}
|
||||
{this.props.device.measuredTemperature} ºC <br />
|
||||
<Icon name="target" /> {this.state.targetTemperature.toFixed(1)} ºC
|
||||
<Icon name="target" />{" "}
|
||||
{this.props.device.targetTemperature.toFixed(1)} ºC
|
||||
</div>
|
||||
{this.props.tab === "Devices" ? (
|
||||
<Slider
|
||||
|
|
Loading…
Reference in a new issue