1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 21:39:40 +02:00

fix(app): get utilization percentage in payload [EE-6387] (#10962)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-01-17 08:33:40 +13:00 committed by GitHub
parent 95474b7dc5
commit 752be47fcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -283,6 +283,7 @@ class KubernetesCreateApplicationController {
/* #region AUTO SCALER UI MANAGEMENT */
onAutoScaleChange(values) {
return this.$async(async () => {
// when enabling the auto scaler, set the default values
if (!this.formValues.AutoScaler.isUsed && values.isUsed) {
this.formValues.AutoScaler = {
isUsed: values.isUsed,
@ -292,6 +293,7 @@ class KubernetesCreateApplicationController {
};
return;
}
// otherwise, just update the values
this.formValues.AutoScaler = values;
});
}