Drucker wird nun gespeichert, Anzahl im drucken-dialog ist sichtbar. "Neu" wird übersetzt.

This commit is contained in:
2025-11-13 20:27:28 +01:00
parent 944ae020f6
commit 7b7a12ed27
5 changed files with 9 additions and 2 deletions

View File

@@ -39,6 +39,11 @@ class GlobalSettings extends Page implements HasForms
$printers = $printerService->getPrinters();
$printerOptions = array_merge($printers, ['__custom__' => __('filament.resource.setting.form.custom_printer')]);
$currentPrinter = app(GeneralSettings::class)->selected_printer;
if ($currentPrinter && $currentPrinter !== '__custom__' && ! array_key_exists($currentPrinter, $printerOptions)) {
$printerOptions = [$currentPrinter => $currentPrinter] + $printerOptions;
}
return $schema
->schema([
TextInput::make('gallery_heading')