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:
parent
d814f3aaa4
commit
c85aa0739d
9 changed files with 386 additions and 20 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue