Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/Http/Resources/GalleryConfigs/UploadConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class UploadConfig extends Data
public int $upload_processing_limit;
public int $upload_chunk_size;
public bool $can_watermark_optout;
public bool $close_upload_on_success;

public function __construct()
{
Expand All @@ -32,6 +33,7 @@ public function __construct()
// Compute watermarker status
$watermarker = resolve(Watermarker::class);
$this->can_watermark_optout = $watermarker->can_watermark() && !$config_manager->getValueAsBool('watermark_optout_disabled');
$this->close_upload_on_success = $config_manager->getValueAsBool('close_upload_on_success');
}

public static function getUploadLimit(): int
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2026 LycheeOrg.
*/

use App\Models\Extensions\BaseConfigMigration;

return new class() extends BaseConfigMigration {
public const PROCESSING = 'Image Processing';

public function getConfigs(): array
{
return [
[
'key' => 'close_upload_on_success',
'value' => '0',
'cat' => self::PROCESSING,
'type_range' => self::BOOL,
'description' => 'Auto-close the upload panel when all uploads complete without errors.',
'details' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'is_secret' => false,
'is_expert' => false,
'level' => 0,
'order' => 28,
],
];
}
};
2 changes: 2 additions & 0 deletions lang/ar/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/ar/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'اكتمل',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'تم التحميل:',
'release' => 'افرج عن الملف لتحميله!',
'select' => 'انقر هنا لاختيار الملفات للتحميل',
Expand Down
2 changes: 2 additions & 0 deletions lang/bg/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'map_display_direction' => 'Показване на посоката на снимката върху картата, ако е налична',
'album_subtitle_type' => 'Определя подзаглавието на албума в изгледа на албуми',
'upload_processing_limit' => 'Максимален брой изображения, обработвани паралелно',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Активиране на известия при добавяне на нови снимки',
'zip_deflate_level' => 'Ниво на компресия на Zip архива.',
'default_album_protection' => 'Защита по подразбиране за новосъздадени албуми',
Expand Down Expand Up @@ -429,6 +430,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = изключване на компресията (използва метод STORE), 0 = без компресия (използва метод DEFLATE), 1 = минимална компресия (бързо), ... 9 = максимална компресия (бавно)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/bg/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'Завършено',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Качени:',
'release' => 'Пуснете файла за качване!',
'select' => 'Кликнете тук, за да изберете файлове за качване',
Expand Down
2 changes: 2 additions & 0 deletions lang/cz/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/cz/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'Hotovo',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Nahráno:',
'release' => 'Pusťte zde soubory k nahrání!',
'select' => 'Klikněte zde pro výběr souborů k nahrání',
Expand Down
2 changes: 2 additions & 0 deletions lang/de/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'map_display_direction' => 'Aufnahmerichtung des Bildes auf der Karte anzeigen (falls verfügbar)',
'album_subtitle_type' => 'Untertitel für Alben in der Albenansicht festlegen',
'upload_processing_limit' => 'Maximale Anzahl gleichzeitig verarbeiteter Bilder beim Upload',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Benachrichtigungen bei neuen Fotos aktivieren',
'zip_deflate_level' => 'ZIP-Kompressionsstufe',
'default_album_protection' => 'Standardschutz für neu erstellte Alben',
Expand Down Expand Up @@ -429,6 +430,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = Kompression deaktivieren (STORE-Methode), 0 = keine Kompression (DEFLATE-Methode), 1 = minimale Kompression (schnell), … 9 = maximale Kompression (langsam)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/de/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
],
'upload' => [
'completed' => 'Abgeschlossen',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Hochgeladen:',
'release' => 'Datei zum Hochladen freigeben!',
'select' => 'Hier klicken um Dateien zum Hochladen auszuwählen',
Expand Down
2 changes: 2 additions & 0 deletions lang/el/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/el/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'Completed',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Uploaded:',
'release' => 'Release file to upload!',
'select' => 'Click here to select files to upload',
Expand Down
2 changes: 2 additions & 0 deletions lang/en/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/en/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'Completed',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Uploaded:',
'release' => 'Release file to upload!',
'select' => 'Click here to select files to upload',
Expand Down
2 changes: 2 additions & 0 deletions lang/es/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'map_display_direction' => 'Mostrar la dirección de la foto en el mapa si está disponible',
'album_subtitle_type' => 'Define el subtítulo del álbum en la vista de álbumes',
'upload_processing_limit' => 'Número máximo de imágenes procesadas en paralelo',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Activar notificaciones cuando se añadan fotos nuevas',
'zip_deflate_level' => 'Nivel de compresión ZIP',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -429,6 +430,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/es/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
],
'upload' => [
'completed' => 'Terminado',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Subido:',
'release' => '¡Libera el archivo para cargar!',
'select' => 'Haga clic aquí para seleccionar los archivos que desea cargar',
Expand Down
2 changes: 2 additions & 0 deletions lang/fa/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/fa/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'تکمیل شد',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'بارگذاری شده:',
'release' => 'برای بارگذاری فایل را رها کنید!',
'select' => 'برای انتخاب فایل‌ها برای بارگذاری اینجا کلیک کنید',
Expand Down
4 changes: 3 additions & 1 deletion lang/fr/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
Comment thread
ildyria marked this conversation as resolved.
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = désactiver la compression (méthode STORE), 0 = pas de compression (méthode DEFLATE), 1 = compression minimale (rapide), ... 9 = compression maximale (lente)',
'default_album_protection' => '',
Expand Down Expand Up @@ -428,7 +429,8 @@
'nsfw_banner_override' => 'Texte d’avertissement personnalisé à la place du texte par défaut.',
'map_display_direction' => 'Afficher la direction de la photo sur la carte si disponible',
'album_subtitle_type' => 'Définit le sous-titre de l’album dans la vue des albums',
'upload_processing_limit' => 'Nombre maximal d’images traitées en parallèle',
"upload_processing_limit" => "Nombre maximal d’images traitées en parallèle",
"close_upload_on_success" => "Auto-close the upload panel when all uploads complete without errors.",
'new_photos_notification' => 'Activer les notifications lors de l’ajout de nouvelles photos',
'zip_deflate_level' => 'Niveau de compression Zip.',
'default_album_protection' => 'Protection par défaut pour les albums nouvellement créés',
Expand Down
2 changes: 2 additions & 0 deletions lang/fr/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'Terminé',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
Comment thread
ildyria marked this conversation as resolved.
'uploaded' => 'Téléversé :',
'release' => 'Relâchez le fichier pour le téléverser !',
'select' => 'Cliquez ici pour sélectionner les fichiers à téléverser',
Expand Down
2 changes: 2 additions & 0 deletions lang/hu/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
2 changes: 2 additions & 0 deletions lang/hu/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
],
'upload' => [
'completed' => 'Completed',
'completed_with_errors' => 'Completed — :errors upload(s) failed',
'completed_with_warnings' => 'Completed — :warnings upload(s) with warnings',
'uploaded' => 'Uploaded:',
'release' => 'Release file to upload!',
'select' => 'Click here to select files to upload',
Expand Down
2 changes: 2 additions & 0 deletions lang/it/all_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'map_display_direction' => 'Display the direction of the picture on the map if available',
'album_subtitle_type' => 'Defines the subtitle of album in albums view',
'upload_processing_limit' => 'Maximum number of images processed in parallel',
'close_upload_on_success' => 'Auto-close the upload panel when all uploads complete without errors.',
'new_photos_notification' => 'Enable notifications when new photos are added',
'zip_deflate_level' => 'Zip compression level.',
'default_album_protection' => 'Default protection for newly created albums',
Expand Down Expand Up @@ -431,6 +432,7 @@
'map_display_direction' => '',
'album_subtitle_type' => '',
'upload_processing_limit' => '',
'close_upload_on_success' => 'When enabled, the upload panel will automatically close once all uploads finish successfully. If any upload fails or produces a warning, the panel remains open.',
'new_photos_notification' => '',
'zip_deflate_level' => '-1 = disable compression (use STORE method), 0 = no compression (use DEFLATE method), 1 = minimal compression (fast), ... 9 = maximum compression (slow)',
'default_album_protection' => '',
Expand Down
Loading
Loading