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:
parent
e00185a160
commit
fd3187abc8
25 changed files with 187 additions and 135 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue