Skip to content

Commit 498e0cf

Browse files
authored
select a manually entered server ID (alexjustesen#315)
1 parent ff28993 commit 498e0cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/Filament/Pages/Settings/GeneralPage.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ protected function getFormSchema(): array
8888
];
8989
});
9090

91+
if (! $options->count() && is_numeric($search)) {
92+
$options = collect([
93+
[
94+
'id' => $search,
95+
'name' => $search.': No server found, manually add this ID.',
96+
],
97+
]);
98+
}
99+
91100
return $options->pluck('name', 'id');
92101
})
93102
->columnSpan(2),

0 commit comments

Comments
 (0)