1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-01 20:05:23 +02:00

fix(k8s/volume): only show resize modal for used volumes (#4194)

This commit is contained in:
Anthony Lapenna 2020-08-11 12:38:41 +12:00 committed by GitHub
parent 01d414b578
commit 6720c31aa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,12 +104,16 @@ class KubernetesVolumeController {
} }
updateVolume() { updateVolume() {
this.ModalService.confirmRedeploy( if (KubernetesVolumeHelper.isUsed(this.volume)) {
'One or multiple applications are currently using this volume.</br> For the change to be taken into account these applications will need to be redeployed. Do you want us to reschedule it now?', this.ModalService.confirmRedeploy(
(redeploy) => { 'One or multiple applications are currently using this volume.</br> For the change to be taken into account these applications will need to be redeployed. Do you want us to reschedule it now?',
return this.$async(this.updateVolumeAsync, redeploy); (redeploy) => {
} return this.$async(this.updateVolumeAsync, redeploy);
); }
);
} else {
return this.$async(this.updateVolumeAsync, false);
}
} }
async getVolumeAsync() { async getVolumeAsync() {