diff --git a/app/Http/Resources/GalleryConfigs/InitConfig.php b/app/Http/Resources/GalleryConfigs/InitConfig.php index 9ad4581bdf1..f16222723d3 100644 --- a/app/Http/Resources/GalleryConfigs/InitConfig.php +++ b/app/Http/Resources/GalleryConfigs/InitConfig.php @@ -69,6 +69,7 @@ class InitConfig extends Data // Slideshow setting public int $slideshow_timeout; + public bool $is_slideshow_enabled; // Timeline settings public bool $is_timeline_left_border_visible; @@ -132,6 +133,7 @@ public function __construct() // Slideshow settings $this->slideshow_timeout = Configs::getValueAsInt('slideshow_timeout'); + $this->is_slideshow_enabled = Configs::getValueAsBool('slideshow_enabled'); // Timeline settings $this->is_timeline_left_border_visible = Configs::getValueAsBool('timeline_left_border_enabled'); diff --git a/database/migrations/2025_05_29_174832_add_slideshow_enabled.php b/database/migrations/2025_05_29_174832_add_slideshow_enabled.php new file mode 100644 index 00000000000..a056a754340 --- /dev/null +++ b/database/migrations/2025_05_29_174832_add_slideshow_enabled.php @@ -0,0 +1,31 @@ + 'slideshow_enabled', + 'value' => '1', + 'cat' => self::CAT, + 'type_range' => self::BOOL, + 'description' => 'Enable the slideshow functionality.', + 'details' => '', + 'is_expert' => true, + 'is_secret' => true, + 'level' => 0, + 'order' => 37, + ], + ]; + } +}; \ No newline at end of file diff --git a/resources/js/components/gallery/albumModule/AlbumHero.vue b/resources/js/components/gallery/albumModule/AlbumHero.vue index 8850fdae060..845ef0eb9d7 100644 --- a/resources/js/components/gallery/albumModule/AlbumHero.vue +++ b/resources/js/components/gallery/albumModule/AlbumHero.vue @@ -79,7 +79,7 @@ @@ -136,7 +136,7 @@ import { computed } from "vue"; const auth = useAuthStore(); const lycheeStore = useLycheeStateStore(); -const { is_se_enabled, is_se_preview_enabled, are_nsfw_visible } = storeToRefs(lycheeStore); +const { is_se_enabled, is_se_preview_enabled, are_nsfw_visible, is_slideshow_enabled } = storeToRefs(lycheeStore); const { user } = storeToRefs(auth); const props = defineProps<{ diff --git a/resources/js/components/headers/PhotoHeader.vue b/resources/js/components/headers/PhotoHeader.vue index 7f4daa59939..e4b7c76912c 100644 --- a/resources/js/components/headers/PhotoHeader.vue +++ b/resources/js/components/headers/PhotoHeader.vue @@ -13,7 +13,7 @@