diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index ef00c0d001..1b710cb596 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -88,7 +88,7 @@ size="mini"/> - + {{ $t('schedule.cron.seconds') }} {{ $t('schedule.cron.minutes') }} {{ $t('schedule.cron.hours') }} @@ -112,7 +112,8 @@ @@ -133,8 +134,9 @@ @@ -250,6 +252,7 @@ export default { autoStop: false, autoStopDelay: 30, isReadOnly: false, + rampUpTimeVisible: true, }; }, mounted() { @@ -651,6 +654,24 @@ export default { return true; }, + getMaxRampUp(tg) { + if (tg.unit === 'S') { + return tg.duration; + } + if (tg.unit === 'M') { + return tg.duration * 60; + } + if (tg.unit === 'H') { + return tg.duration * 60 * 60; + } + return tg.duration; + }, + changeUnit(tg) { + this.rampUpTimeVisible = false; + this.$nextTick(() => { + this.rampUpTimeVisible = true; + }); + }, getUnitLabel(tg) { if (tg.unit === 'S') { return this.$t('schedule.cron.seconds');