diff --git a/app/assets/css/app.css b/app/assets/css/app.css index f6a147f4b..9c5c88480 100644 --- a/app/assets/css/app.css +++ b/app/assets/css/app.css @@ -481,7 +481,7 @@ a[ng-click] { :root[theme='dark'] .bootbox-checkbox-list, :root[theme='highcontrast'] .bootbox-checkbox-list { - background-color: var(--black-color); + background-color: var(--bg-modal-content-color); } .small-select { diff --git a/app/portainer/components/forms/git-form/git-form-auto-update-fieldset/git-form-auto-update-fieldset.html b/app/portainer/components/forms/git-form/git-form-auto-update-fieldset/git-form-auto-update-fieldset.html index e1beef41d..76658a60f 100644 --- a/app/portainer/components/forms/git-form/git-form-auto-update-fieldset/git-form-auto-update-fieldset.html +++ b/app/portainer/components/forms/git-form/git-form-auto-update-fieldset/git-form-auto-update-fieldset.html @@ -13,7 +13,9 @@
- Any changes to this stack or application made locally in Portainer will be overridden, which may cause service interruption. + Any changes to this stack or application made locally in Portainer will be overridden, which may cause service interruption. Do you wish to continue?
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 8b5108524..b5e4c3743 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 @@ -103,8 +103,8 @@ class StackRedeployGitFormController { async submit() { const tplCrop = - '
Any changes to this stack or application made locally in Portainer will be overridden, which may cause service interruption.
' + - '
' + + '
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?'