small cleanup

This commit is contained in:
Boy132 2025-09-02 13:31:00 +02:00
parent a7df78d211
commit b1a670f8f5
2 changed files with 2 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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="