1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-31 11:19:40 +02:00

feat(app): push pull container creation

This commit is contained in:
xAt0mZ 2019-11-20 21:22:58 +01:00
parent e00185a160
commit fd3187abc8
25 changed files with 187 additions and 135 deletions

View file

@ -20,10 +20,12 @@ class porImageRegistryController {
this.autoComplete ? this.ImageService.images() : []]);
this.availableImages = this.ImageService.getUniqueTagListFromImages(availableImages);
this.availableRegistries = [dockerhub].concat(registries);
if (!this.registry.Id) {
this.registry = dockerhub;
const id = this.model.Registry.Id;
if (!id) {
this.model.Registry = dockerhub;
} else {
this.registry = _.find(this.availableRegistries, { 'Id': this.registry.Id });
this.model.Registry = _.find(this.availableRegistries, { 'Id': id });
}
} catch (err) {
this.Notifications.error('Failure', err, 'Unable to retrieve registries');
@ -31,7 +33,6 @@ class porImageRegistryController {
}
$onInit() {
this.useRegistry = true;
return this.$async(this.onInit);
}
}