One more btn improvement
This commit is contained in:
8
ui.js
8
ui.js
@@ -228,11 +228,11 @@ class CaptureButton extends Component {
|
|||||||
h('input', {
|
h('input', {
|
||||||
type: 'button',
|
type: 'button',
|
||||||
class:
|
class:
|
||||||
'pure-button' + (this.state.inProgress ? ' pure-button-active' : ''),
|
'pure-input-1-3 pure-button' +
|
||||||
|
(this.state.inProgress ? ' pure-button-active' : ''),
|
||||||
onclick: this.handleCapture,
|
onclick: this.handleCapture,
|
||||||
value: 'Capture image'
|
value: `${this.state.inProgress ? '⌛' : '📷'} Capture image`
|
||||||
}),
|
})
|
||||||
this.state.inProgress ? ' ⌛' : ''
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user