mirror of https://github.com/docker/docs.git
Reverting DockerUtil.js
This commit is contained in:
parent
3a52e1c3f2
commit
6f7d9b80e7
|
@ -170,8 +170,6 @@ export default {
|
||||||
localStorage.setItem('placeholders', JSON.stringify(this.placeholders));
|
localStorage.setItem('placeholders', JSON.stringify(this.placeholders));
|
||||||
|
|
||||||
this.pullImage(repository, tag, error => {
|
this.pullImage(repository, tag, error => {
|
||||||
delete this.placeholders[name];
|
|
||||||
localStorage.setItem('placeholders', JSON.stringify(this.placeholders));
|
|
||||||
if (error) {
|
if (error) {
|
||||||
containerServerActions.error({name, error});
|
containerServerActions.error({name, error});
|
||||||
return;
|
return;
|
||||||
|
@ -181,6 +179,8 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete this.placeholders[name];
|
||||||
|
localStorage.setItem('placeholders', JSON.stringify(this.placeholders));
|
||||||
this.createContainer(name, {Image: imageName});
|
this.createContainer(name, {Image: imageName});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -374,7 +374,6 @@ export default {
|
||||||
var data = JSON.parse(str);
|
var data = JSON.parse(str);
|
||||||
|
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
console.log(data.error);
|
|
||||||
callback(data.error);
|
callback(data.error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue