feat: add availableSharedVariables method and enhance env-var-input component for better password handling

This commit is contained in:
Andras Bacsai
2025-11-27 10:23:46 +01:00
parent e47e241da1
commit c2e1379ba8
4 changed files with 115 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ class EnvVarInput extends Component
public bool $disabled = false,
public bool $readonly = false,
public ?string $helper = null,
public bool $allowToPeak = true,
public string $defaultClass = 'input',
public string $autocomplete = 'off',
public ?int $minlength = null,
@@ -72,6 +73,10 @@ class EnvVarInput extends Component
$this->name = $this->modelBinding !== 'null' ? $this->modelBinding : (string) $this->id;
}
if ($this->type === 'password') {
$this->defaultClass = $this->defaultClass.' pr-[2.8rem]';
}
$this->scopeUrls = [
'team' => route('shared-variables.team.index'),
'project' => route('shared-variables.project.index'),