mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 09:38:37 +02:00
small cleanup
This commit is contained in:
parent
a7df78d211
commit
b1a670f8f5
@ -233,14 +233,4 @@ class StartupVariable extends Field
|
|||||||
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTextType(): string
|
|
||||||
{
|
|
||||||
return $this->getType() === StartupVariableType::Number ? 'number' : 'text';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getTextInputMode(): ?string
|
|
||||||
{
|
|
||||||
return $this->getType() === StartupVariableType::Number ? 'decimal' : null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -68,8 +68,8 @@
|
|||||||
:required="$isRequired"
|
:required="$isRequired"
|
||||||
:disabled="$isDisabled"
|
:disabled="$isDisabled"
|
||||||
:placeholder="$getPlaceholder()"
|
:placeholder="$getPlaceholder()"
|
||||||
:type="$getTextType()"
|
:type="$type->value"
|
||||||
:inputmode="$getTextInputMode()"
|
:inputmode="$type === \App\Enums\StartupVariableType::Number ? 'numeric' : null"
|
||||||
:max="$getMaxValue()"
|
:max="$getMaxValue()"
|
||||||
:min="$getMinValue()"
|
:min="$getMinValue()"
|
||||||
:attributes="
|
:attributes="
|
||||||
|
Loading…
x
Reference in New Issue
Block a user