fix(stack): EE-3908 broken modal when updating/redeploying stacks: turn off toggle (#7573)

pull/7581/head
congs 2 years ago committed by GitHub
parent a54c54ef24
commit ad8054ac1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -108,7 +108,7 @@ class StackRedeployGitFormController {
'<be-feature-indicator feature="stackPullImageFeature"></be-feature-indicator></div></div>'; '<be-feature-indicator feature="stackPullImageFeature"></be-feature-indicator></div></div>';
const template = angular.element(tplCrop); const template = angular.element(tplCrop);
const html = this.$compile(template)(this.$scope); 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) { if (!result) {
return; return;
} }

@ -250,7 +250,7 @@ angular.module('portainer.app').controller('StackController', [
const template = angular.element(tplCrop); const template = angular.element(tplCrop);
const html = $compile(template)($scope); const html = $compile(template)($scope);
// 'Do you want to force an update of the stack?' // '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) { if (!result) {
return; return;
} }

Loading…
Cancel
Save