mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
EE-2570 disable pull image toggle when invalid (#7002)
This commit is contained in:
parent
81f8b88541
commit
cd66e32912
3 changed files with 34 additions and 4 deletions
|
@ -372,7 +372,8 @@ angular.module('portainer.docker').controller('ContainerController', [
|
|||
}
|
||||
|
||||
$scope.recreate = function () {
|
||||
ModalService.confirmContainerRecreation(function (result) {
|
||||
const cannotPullImage = !$scope.container.Config.Image || $scope.container.Config.Image.toLowerCase().startsWith('sha256');
|
||||
ModalService.confirmContainerRecreation(cannotPullImage, function (result) {
|
||||
if (!result) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue