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 []; 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" :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="