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:
parent
b81babe682
commit
77c38306b2
4 changed files with 13 additions and 2 deletions
|
@ -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`}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue