1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(container-details): add the ability to re-create, duplicate and edit a container (#855)

This commit is contained in:
Thomas Krzero 2017-08-13 12:17:41 +02:00 committed by Anthony Lapenna
parent d814f3aaa4
commit c85aa0739d
9 changed files with 386 additions and 20 deletions

View file

@ -12,7 +12,11 @@ function ($q, RegistryService, DockerHubService, Notifications) {
var dockerhub = data.dockerhub;
var registries = data.registries;
ctrl.availableRegistries = [dockerhub].concat(registries);
ctrl.registry = dockerhub;
if (!ctrl.registry.Id) {
ctrl.registry = dockerhub;
} else {
ctrl.registry = _.find(ctrl.availableRegistries, { 'Id': ctrl.registry.Id });
}
})
.catch(function error(err) {
Notifications.error('Failure', err, 'Unable to retrieve registries');