mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(k8s/volume): only show resize modal for used volumes (#4194)
This commit is contained in:
parent
01d414b578
commit
6720c31aa9
1 changed files with 10 additions and 6 deletions
|
@ -104,12 +104,16 @@ class KubernetesVolumeController {
|
|||
}
|
||||
|
||||
updateVolume() {
|
||||
this.ModalService.confirmRedeploy(
|
||||
'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?',
|
||||
(redeploy) => {
|
||||
return this.$async(this.updateVolumeAsync, redeploy);
|
||||
}
|
||||
);
|
||||
if (KubernetesVolumeHelper.isUsed(this.volume)) {
|
||||
this.ModalService.confirmRedeploy(
|
||||
'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?',
|
||||
(redeploy) => {
|
||||
return this.$async(this.updateVolumeAsync, redeploy);
|
||||
}
|
||||
);
|
||||
} else {
|
||||
return this.$async(this.updateVolumeAsync, false);
|
||||
}
|
||||
}
|
||||
|
||||
async getVolumeAsync() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue