mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 13:55:21 +02:00
feat(app): push pull image pull
This commit is contained in:
parent
d27d5c216a
commit
507158e69c
1 changed files with 3 additions and 5 deletions
|
@ -58,13 +58,11 @@ function ($q, $scope, $transition$, $state, $timeout, ImageService, ImageHelper,
|
|||
});
|
||||
};
|
||||
|
||||
// TODO CHANGE
|
||||
$scope.pullTag = function(repository) {
|
||||
$('#downloadResourceHint').show();
|
||||
RegistryService.retrieveRegistryFromRepository(repository)
|
||||
.then(function success(data) {
|
||||
var registry = data;
|
||||
return ImageService.pullImage(registry, false);
|
||||
RegistryService.retrievePorRegistryModelFromRepository(repository)
|
||||
.then(function success(registryModel) {
|
||||
return ImageService.pullImage(registryModel, false);
|
||||
})
|
||||
.then(function success() {
|
||||
Notifications.success('Image successfully pulled', repository);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue