From 7b7a12ed27e23e52272d28bf11c3ae208a704e7f Mon Sep 17 00:00:00 2001 From: SEB Fotografie - soeren Date: Thu, 13 Nov 2025 20:27:28 +0100 Subject: [PATCH] =?UTF-8?q?Drucker=20wird=20nun=20gespeichert,=20Anzahl=20?= =?UTF-8?q?im=20drucken-dialog=20ist=20sichtbar.=20"Neu"=20wird=20=C3=BCbe?= =?UTF-8?q?rsetzt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Filament/Pages/GlobalSettings.php | 5 +++++ resources/js/Components/GalleryGrid.vue | 2 +- resources/js/Components/PrintQuantityModal.vue | 2 +- resources/lang/de/api.php | 1 + resources/lang/en/api.php | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/Filament/Pages/GlobalSettings.php b/app/Filament/Pages/GlobalSettings.php index cbd5155..81ff412 100644 --- a/app/Filament/Pages/GlobalSettings.php +++ b/app/Filament/Pages/GlobalSettings.php @@ -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') diff --git a/resources/js/Components/GalleryGrid.vue b/resources/js/Components/GalleryGrid.vue index 7a0f054..5270d3d 100644 --- a/resources/js/Components/GalleryGrid.vue +++ b/resources/js/Components/GalleryGrid.vue @@ -29,7 +29,7 @@ class="absolute left-4 top-4 inline-flex items-center gap-2 rounded-full bg-emerald-300/90 px-3 py-1 text-xs font-semibold uppercase tracking-wide text-emerald-900 shadow-lg" > - {{ __('new') }} + {{ __('api.gallery.new_badge') }}

{{ fallbackLabel(image) }}

diff --git a/resources/js/Components/PrintQuantityModal.vue b/resources/js/Components/PrintQuantityModal.vue index 7d0e1a7..9c036f5 100644 --- a/resources/js/Components/PrintQuantityModal.vue +++ b/resources/js/Components/PrintQuantityModal.vue @@ -34,7 +34,7 @@ > − -
{{ quantity }}
+
{{ quantity }}