From ad8054ac1fb7ff05171fbf9c79c0f2986073b5a8 Mon Sep 17 00:00:00 2001 From: congs Date: Fri, 26 Aug 2022 17:54:10 +1200 Subject: [PATCH] fix(stack): EE-3908 broken modal when updating/redeploying stacks: turn off toggle (#7573) --- .../stack-redeploy-git-form.controller.js | 2 +- app/portainer/views/stacks/edit/stackController.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/portainer/components/forms/stack-redeploy-git-form/stack-redeploy-git-form.controller.js b/app/portainer/components/forms/stack-redeploy-git-form/stack-redeploy-git-form.controller.js index b5e4c3743..368cfd51d 100644 --- a/app/portainer/components/forms/stack-redeploy-git-form/stack-redeploy-git-form.controller.js +++ b/app/portainer/components/forms/stack-redeploy-git-form/stack-redeploy-git-form.controller.js @@ -108,7 +108,7 @@ class StackRedeployGitFormController { ''; const template = angular.element(tplCrop); const html = this.$compile(template)(this.$scope); - this.ModalService.confirmStackUpdate(html, true, true, 'btn-warning', async (result) => { + this.ModalService.confirmStackUpdate(html, true, false, 'btn-warning', async (result) => { if (!result) { return; } diff --git a/app/portainer/views/stacks/edit/stackController.js b/app/portainer/views/stacks/edit/stackController.js index 948e43a0e..421991848 100644 --- a/app/portainer/views/stacks/edit/stackController.js +++ b/app/portainer/views/stacks/edit/stackController.js @@ -250,7 +250,7 @@ angular.module('portainer.app').controller('StackController', [ const template = angular.element(tplCrop); const html = $compile(template)($scope); // 'Do you want to force an update of the stack?' - ModalService.confirmStackUpdate(html, true, true, null, function (result) { + ModalService.confirmStackUpdate(html, true, false, null, function (result) { if (!result) { return; }