mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 10:14:47 +00:00
feat: shared server environment variables
This commit is contained in:
1 parent
c3ff32b287
commit
e8d985211e
13 files changed
+411
-33
No files matched your search
@@ -38,6 +38,7 @@ class EnvVarInput extends Component
|
||||
public array $availableVars = [],
|
||||
public ?string $projectUuid = null,
|
||||
public ?string $environmentUuid = null,
|
||||
public ?string $serverUuid = null,
|
||||
) {
|
||||
// Handle authorization-based disabling
|
||||
if ($this->canGate && $this->canResource && $this->autoDisable) {
|
||||
@@ -86,6 +87,9 @@ class EnvVarInput extends Component
|
||||
'environment_uuid' => $this->environmentUuid,
|
||||
])
|
||||
: route('shared-variables.environment.index'),
|
||||
'server' => $this->serverUuid
|
||||
? route('shared-variables.server.show', ['server_uuid' => $this->serverUuid])
|
||||
: route('shared-variables.server.index'),
|
||||
'default' => route('shared-variables.index'),
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user