' +
+ '
Any changes to this stack or application made locally in Portainer will be overridden, which may cause service interruption. Do you wish to continue?
' +
+ '
';
const template = angular.element(tplCrop);
const html = this.$compile(template)(this.$scope);
diff --git a/app/portainer/services/modal.service/prompt.ts b/app/portainer/services/modal.service/prompt.ts
index 489dc711e..452addcb1 100644
--- a/app/portainer/services/modal.service/prompt.ts
+++ b/app/portainer/services/modal.service/prompt.ts
@@ -167,8 +167,8 @@ export function confirmStackUpdate(
confirmButtonClassName: string | undefined,
callback: PromptCallback
) {
- const sanitizedMessage = sanitize(message);
-
+ const sanitizedMessage =
+ typeof message === 'string' ? sanitize(message) : message;
const box = prompt({
title: buildTitle('Are you sure?'),
inputType: 'checkbox',
@@ -197,7 +197,8 @@ export function confirmStackUpdate(
'position: relative; display: block; margin-top: 10px; margin-bottom: 10px;'
);
const checkboxLabel = box.find('.form-check-label');
- checkboxLabel.addClass('switch box-selector-item limited business');
+ checkboxLabel.addClass('switch box-selector-item limited business mt-4');
+ checkboxLabel.prop('style', 'width: 100%');
const switchEle = checkboxLabel.find('i');
switchEle.prop('style', 'margin-left:20px');
}
diff --git a/app/portainer/views/stacks/edit/stackController.js b/app/portainer/views/stacks/edit/stackController.js
index b8201892a..922fe63c3 100644
--- a/app/portainer/views/stacks/edit/stackController.js
+++ b/app/portainer/views/stacks/edit/stackController.js
@@ -246,7 +246,7 @@ angular.module('portainer.app').controller('StackController', [
const stack = $scope.stack;
const tplCrop =
'
Do you want to force an update of the stack?
' +
- '
';
+ '
';
const template = angular.element(tplCrop);
const html = $compile(template)($scope);
// 'Do you want to force an update of the stack?'