mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-18 00:36:33 +00:00
Fix bug where images can't be reselected
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
This commit is contained in:
parent
996c2b55a4
commit
b6fb44d6a5
@ -118,6 +118,7 @@ class ImageSelector extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reselectImage () {
|
reselectImage () {
|
||||||
|
console.log('reselecting image')
|
||||||
analytics.logEvent('Reselect image', {
|
analytics.logEvent('Reselect image', {
|
||||||
previousImage: selectionState.getImage(),
|
previousImage: selectionState.getImage(),
|
||||||
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
||||||
@ -299,13 +300,15 @@ class ImageSelector extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemedProvider>
|
<ThemedProvider>
|
||||||
<Dropzone multiple={false} noClick onDrop={this.handleOnDrop}>
|
<div className="box text-center relative">
|
||||||
|
<Dropzone multiple={false} onDrop={this.handleOnDrop}>
|
||||||
{({ getRootProps, getInputProps }) => (
|
{({ getRootProps, getInputProps }) => (
|
||||||
<div className="box text-center relative" {...getRootProps()}>
|
<div className="center-block" {...getRootProps()}>
|
||||||
<input {...getInputProps()} />
|
<input {...getInputProps()} />
|
||||||
<div className="center-block">
|
|
||||||
<SVGIcon contents={selectionState.getImageLogo()} paths={[ '../../assets/image.svg' ]} />
|
<SVGIcon contents={selectionState.getImageLogo()} paths={[ '../../assets/image.svg' ]} />
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
</Dropzone>
|
||||||
|
|
||||||
<div className="space-vertical-large">
|
<div className="space-vertical-large">
|
||||||
{hasImage ? (
|
{hasImage ? (
|
||||||
@ -350,8 +353,6 @@ class ImageSelector extends React.Component {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</Dropzone>
|
|
||||||
|
|
||||||
{Boolean(this.state.warning) && (
|
{Boolean(this.state.warning) && (
|
||||||
<Modal
|
<Modal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user