One more btn improvement

This commit is contained in:
Ingvar Stepanyan
2021-07-14 17:17:33 +00:00
parent b12b6fcd2d
commit e60bbbc473

8
ui.js
View File

@@ -228,11 +228,11 @@ class CaptureButton extends Component {
h('input', {
type: 'button',
class:
'pure-button' + (this.state.inProgress ? ' pure-button-active' : ''),
'pure-input-1-3 pure-button' +
(this.state.inProgress ? ' pure-button-active' : ''),
onclick: this.handleCapture,
value: 'Capture image'
}),
this.state.inProgress ? ' ⌛' : ''
value: `${this.state.inProgress ? '⌛' : '📷'} Capture image`
})
);
}
}