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