mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 21:20:29 +00:00
feat: add availableSharedVariables method and enhance env-var-input component for better password handling
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user