From 6f7d9b80e78fc8c82fa7207eff89b1d23023e6d7 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 4 Jun 2015 23:08:52 -0700 Subject: [PATCH] Reverting DockerUtil.js --- src/utils/DockerUtil.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/DockerUtil.js b/src/utils/DockerUtil.js index 2f951e94a1..1109a381d1 100644 --- a/src/utils/DockerUtil.js +++ b/src/utils/DockerUtil.js @@ -170,8 +170,6 @@ export default { localStorage.setItem('placeholders', JSON.stringify(this.placeholders)); this.pullImage(repository, tag, error => { - delete this.placeholders[name]; - localStorage.setItem('placeholders', JSON.stringify(this.placeholders)); if (error) { containerServerActions.error({name, error}); return; @@ -181,6 +179,8 @@ export default { return; } + delete this.placeholders[name]; + localStorage.setItem('placeholders', JSON.stringify(this.placeholders)); this.createContainer(name, {Image: imageName}); }, @@ -374,7 +374,6 @@ export default { var data = JSON.parse(str); if (data.error) { - console.log(data.error); callback(data.error); return; }