mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 06:08:40 +02:00
small cleanup
This commit is contained in:
parent
a7df78d211
commit
b1a670f8f5
@ -233,14 +233,4 @@ class StartupVariable extends Field
|
||||
|
||||
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"
|
||||
:disabled="$isDisabled"
|
||||
:placeholder="$getPlaceholder()"
|
||||
:type="$getTextType()"
|
||||
:inputmode="$getTextInputMode()"
|
||||
:type="$type->value"
|
||||
:inputmode="$type === \App\Enums\StartupVariableType::Number ? 'numeric' : null"
|
||||
:max="$getMaxValue()"
|
||||
:min="$getMinValue()"
|
||||
:attributes="
|
||||
|
Loading…
x
Reference in New Issue
Block a user