diff --git a/lib/gui/assets/image.svg b/lib/gui/assets/image.svg index ccb8edef..a3a08b71 100644 --- a/lib/gui/assets/image.svg +++ b/lib/gui/assets/image.svg @@ -1,16 +1,11 @@ - - + + viewBox="0 0 41 41" style="enable-background:new 0 0 41 41;" xml:space="preserve"> - - - - + + diff --git a/lib/gui/pages/main/controllers/main.js b/lib/gui/pages/main/controllers/main.js index da2c9656..af8066e9 100644 --- a/lib/gui/pages/main/controllers/main.js +++ b/lib/gui/pages/main/controllers/main.js @@ -34,19 +34,19 @@ module.exports = function( this.tooltipModal = TooltipModalService; /** - * @summary Determine if the drive step should be disabled + * @summary Determine if the image step should be disabled * @function * @public * - * @returns {Boolean} whether the drive step should be disabled + * @returns {Boolean} whether the image step should be disabled * * @example - * if (MainController.shouldDriveStepBeDisabled()) { - * console.log('The drive step should be disabled'); + * if (MainController.shouldImageStepBeDisabled()) { + * console.log('The image step should be disabled'); * } */ - this.shouldDriveStepBeDisabled = () => { - return !SelectionStateModel.hasImage(); + this.shouldImageStepBeDisabled = () => { + return !SelectionStateModel.hasDrive(); }; /** @@ -62,7 +62,7 @@ module.exports = function( * } */ this.shouldFlashStepBeDisabled = () => { - return this.shouldDriveStepBeDisabled() || !SelectionStateModel.hasDrive(); + return !SelectionStateModel.hasImage() || this.shouldImageStepBeDisabled(); }; }; diff --git a/lib/gui/pages/main/templates/main.tpl.html b/lib/gui/pages/main/templates/main.tpl.html index b8170bcf..7593698c 100644 --- a/lib/gui/pages/main/templates/main.tpl.html +++ b/lib/gui/pages/main/templates/main.tpl.html @@ -1,63 +1,23 @@
-
-
- - SELECT IMAGE - 1 - -
-
- - - -
-
-
- - - -
- - -
-
-
-
-
-
-
- SELECT DRIVE + SELECT DRIVE - 2 + 1
-
+
-
+
@@ -76,6 +36,58 @@
+
+
+
+
+ + + SELECT IMAGE + 2 + +
+
+ + + +
+
+
+ + + +
+ + +
+
+
+
+
{ + return true; + }; - m.chai.expect(controller.shouldDriveStepBeDisabled()).to.be.false; + m.chai.expect(controller.shouldImageStepBeDisabled()).to.be.false; }); });