mirror of https://github.com/portainer/portainer
feat(container-edit): container edit/duplicate feature not experimental anymore (#1363)
parent
4a291247ac
commit
d06667218f
|
@ -197,10 +197,7 @@ function ($q, $scope, $state, $transition$, $filter, Container, ContainerCommit,
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.duplicate = function() {
|
$scope.duplicate = function() {
|
||||||
ModalService.confirmExperimentalFeature(function (experimental) {
|
$state.go('actions.create.container', {from: $transition$.params().id}, {reload: true});
|
||||||
if(!experimental) { return; }
|
|
||||||
$state.go('actions.create.container', {from: $transition$.params().id}, {reload: true});
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.confirmRemove = function () {
|
$scope.confirmRemove = function () {
|
||||||
|
@ -264,17 +261,13 @@ function ($q, $scope, $state, $transition$, $filter, Container, ContainerCommit,
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.recreate = function() {
|
$scope.recreate = function() {
|
||||||
ModalService.confirmExperimentalFeature(function (experimental) {
|
ModalService.confirmContainerRecreation(function (result) {
|
||||||
if(!experimental) { return; }
|
if(!result) { return; }
|
||||||
|
var pullImage = false;
|
||||||
ModalService.confirmContainerRecreation(function (result) {
|
if (result[0]) {
|
||||||
if(!result) { return; }
|
pullImage = true;
|
||||||
var pullImage = false;
|
}
|
||||||
if (result[0]) {
|
recreateContainer(pullImage);
|
||||||
pullImage = true;
|
|
||||||
}
|
|
||||||
recreateContainer(pullImage);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue