1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00

feat(kube): Add a confirmation modal before deleting one or more application or configuration (#4522)

This commit is contained in:
Maxime Bajeux 2020-12-10 08:46:58 +01:00 committed by GitHub
parent 20cf948e53
commit 60c5ab3eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -79,7 +79,11 @@ class KubernetesApplicationsController {
}
removeAction(selectedItems) {
return this.$async(this.removeActionAsync, selectedItems);
this.ModalService.confirmDeletion('Do you want to remove the selected application(s)?', (confirmed) => {
if (confirmed) {
return this.$async(this.removeActionAsync, selectedItems);
}
});
}
onPublishingModeClick(application) {