From 4be7a4032060fef21a8733ef5919a2bf9e83936e Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 22 Oct 2015 14:15:48 -0700 Subject: [PATCH] Only show progress on starting or creating the VM Signed-off-by: Jeffrey Morgan --- src/utils/SetupUtil.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/SetupUtil.js b/src/utils/SetupUtil.js index bf7c35b5..d0723f64 100644 --- a/src/utils/SetupUtil.js +++ b/src/utils/SetupUtil.js @@ -61,9 +61,9 @@ export default { throw new Error('Docker Machine is not installed. Please install it via the Docker Toolbox.'); } - setupServerActions.started({started: true}); let exists = await virtualBox.vmExists(machine.name()) && fs.existsSync(path.join(util.home(), '.docker', 'machine', 'machines', machine.name())); if (!exists) { + setupServerActions.started({started: true}); this.simulateProgress(60); try { await machine.rm(); @@ -72,6 +72,7 @@ export default { } else { let state = await machine.state(); if (state !== 'Running') { + setupServerActions.started({started: true}); if (state === 'Saved') { router.get().transitionTo('setup'); this.simulateProgress(10);