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

fix(app): get min resource limits [EE-6567] (#10994)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-01-23 11:20:24 +13:00 committed by GitHub
parent b81babe682
commit 77c38306b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 2 deletions

View file

@ -6,6 +6,7 @@ export function SliderWithInput({
value,
onChange,
max,
min = 0,
step = 1,
dataCy,
visibleTooltip = false,
@ -13,6 +14,7 @@ export function SliderWithInput({
value: number;
onChange: (value: number) => void;
max: number;
min?: number;
dataCy: string;
step?: number;
visibleTooltip?: boolean;
@ -26,7 +28,7 @@ export function SliderWithInput({
onChange(typeof value === 'number' ? value : value[0])
}
value={value}
min={0}
min={min}
max={max}
step={step}
dataCy={`${dataCy}Slider`}