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 @@ > − -