mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
fix(GUI): don't clear selection state when re-selecting an image (#753)
Currently, if the "CHANGE" label at the bottom of the image selection step, once an image has been selected, is clicked, the selection state is cleared. Since https://github.com/resin-io/etcher/pull/602, we allow the drive state to change independently of the image selection state, so the above behaviour doesn't make sense anymore. Fixes: https://github.com/resin-io/etcher/issues/730 Change-Type: patch Changelog-Entry: Don't clear selection state when re-selecting an image. Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
4e5b000440
commit
60e3cbd22d
@ -97,13 +97,6 @@ module.exports = function(SupportedFormatsModel, SelectionStateModel, AnalyticsS
|
||||
* ImageSelectionController.reselectImage();
|
||||
*/
|
||||
this.reselectImage = () => {
|
||||
|
||||
// Reselecting an image automatically
|
||||
// de-selects the current drive, if any.
|
||||
// This is made so the user effectively
|
||||
// "returns" to the first step.
|
||||
SelectionStateModel.clear();
|
||||
|
||||
this.openImageSelector();
|
||||
AnalyticsService.logEvent('Reselect image');
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user