mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-14 19:21:08 +02:00
Fix these
This commit is contained in:
parent
f6122f919a
commit
68ef0a1d0a
@ -602,9 +602,9 @@ class EditServer extends EditRecord
|
||||
$component = $component
|
||||
->live(onBlur: true)
|
||||
->hintIcon('tabler-code')
|
||||
->label(fn (ServerVariable $serverVariable) => $serverVariable->variable?->name)
|
||||
->hintIconTooltip(fn (ServerVariable $serverVariable) => $serverVariable->variable?->rules)
|
||||
->prefix(fn (ServerVariable $serverVariable) => '{{' . $serverVariable->variable?->env_variable . '}}')
|
||||
->label(fn (ServerVariable $serverVariable) => $serverVariable->variable->name)
|
||||
->hintIconTooltip(fn (ServerVariable $serverVariable) => $serverVariable->variable->rules)
|
||||
->prefix(fn (ServerVariable $serverVariable) => '{{' . $serverVariable->variable->env_variable . '}}')
|
||||
->helperText(fn (ServerVariable $serverVariable) => empty($serverVariable->variable?->description) ? '—' : $serverVariable->variable->description);
|
||||
}
|
||||
|
||||
@ -953,16 +953,11 @@ class EditServer extends EditRecord
|
||||
|
||||
public function portOptions(Egg $egg, string $startup = null): array
|
||||
{
|
||||
if ($egg instanceof Server) {
|
||||
$egg = $egg->egg;
|
||||
}
|
||||
|
||||
$options = [];
|
||||
|
||||
if (empty($startup)) {
|
||||
$startup = $egg->startup;
|
||||
}
|
||||
|
||||
$options = [];
|
||||
if (str_contains($startup, '{{SERVER_PORT}}')) {
|
||||
$options['SERVER_PORT'] = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user