mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 23:35:31 +02:00
delete force terminating namespace (#7081)
This commit is contained in:
parent
75fef397d3
commit
e5e57978af
5 changed files with 79 additions and 9 deletions
|
@ -100,6 +100,25 @@ export function confirmDeletion(message: string, callback: ConfirmCallback) {
|
|||
});
|
||||
}
|
||||
|
||||
export function confirmWithTitle(
|
||||
title: string,
|
||||
message: string,
|
||||
callback: ConfirmCallback
|
||||
) {
|
||||
const messageSanitized = sanitize(message);
|
||||
confirm({
|
||||
title: sanitize(title),
|
||||
message: messageSanitized,
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: 'Remove',
|
||||
className: 'btn-danger',
|
||||
},
|
||||
},
|
||||
callback,
|
||||
});
|
||||
}
|
||||
|
||||
export function confirmDetachment(message: string, callback: ConfirmCallback) {
|
||||
const messageSanitized = sanitize(message);
|
||||
confirm({
|
||||
|
|
|
@ -16,6 +16,7 @@ import {
|
|||
confirmWebEditorDiscard,
|
||||
confirm,
|
||||
confirmForceChangePassword,
|
||||
confirmWithTitle,
|
||||
} from './confirm';
|
||||
import {
|
||||
confirmContainerDeletion,
|
||||
|
@ -58,5 +59,6 @@ export function ModalServiceAngular() {
|
|||
selectRegistry,
|
||||
confirmContainerDeletion,
|
||||
confirmForceChangePassword,
|
||||
confirmWithTitle,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue