-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix smart album not having visibilty option (#2470)
- Loading branch information
Showing
4 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 19 additions & 14 deletions
33
resources/views/components/gallery/album/menu/menu.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,47 @@ | ||
@props(['album', 'rights', 'userCount' => 0]) | ||
<div class="w-full flex justify-center flex-wrap flex-row-reverse" x-cloak x-show="albumFlags.isDetailsOpen" x-collapse.duration.300ms > | ||
@if($this->flags->is_base_album) | ||
<ul class=" | ||
sm:mt-7 sm:px-7 mb-4 | ||
text-text-main-200 text-sm w-full xl:w-1/6 xl:px-9 | ||
max-xl:w-full max-xl:flex max-xl:justify-center | ||
"> | ||
<x-gallery.album.menu.item tab='0' >{{ __('lychee.ABOUT_ALBUM') }}</x-gallery.album.menu.item> | ||
@if ($rights->can_share_with_users === true && $userCount > 1 && ($album instanceof \App\Models\Album)) | ||
@if ($this->rights->can_share_with_users === true && $this->num_users > 1) | ||
<x-gallery.album.menu.item tab='1' >{{ __('lychee.SHARE_ALBUM') }}</x-gallery.album.menu.item> | ||
@endif | ||
@if($album instanceof \App\Models\Album && $rights->can_delete === true) | ||
@if($this->rights->can_delete === true) | ||
<x-gallery.album.menu.item tab='2' >{{ __('lychee.MOVE_ALBUM') }}</x-gallery.album.menu.item> | ||
@endif | ||
@if($rights->can_delete === true) | ||
@if($this->rights->can_delete === true) | ||
<x-gallery.album.menu.danger tab='3' >{{ "DANGER ZONE" }}</x-gallery.album.menu.danger> | ||
@endif | ||
</ul> | ||
@endif | ||
<div class="w-full xl:w-5/6 flex justify-center flex-wrap mb-4 sm:mt-7 pl-7" x-cloak x-show="albumFlags.activeTab === 0"> | ||
<livewire:forms.album.properties :album="$album" /> | ||
<livewire:forms.album.visibility :album="$album" /> | ||
@if($this->flags->is_base_album) | ||
<livewire:forms.album.properties :album="$this->album" /> | ||
@endif | ||
<livewire:forms.album.visibility :album="$this->album" /> | ||
</div> | ||
@if ($rights->can_share_with_users === true && $userCount > 1 && ($album instanceof \App\Models\Album)) | ||
@if($this->flags->is_base_album) | ||
@if ($this->rights->can_share_with_users === true && $this->num_users > 1) | ||
<div class="w-full xl:w-5/6 flex justify-center flex-wrap mb-4 sm:mt-7 pl-7" x-cloak x-show="albumFlags.activeTab === 1"> | ||
<livewire:forms.album.share-with :album="$album" /> | ||
<livewire:forms.album.share-with :album="$this->album" /> | ||
</div> | ||
@endif | ||
@if($album instanceof \App\Models\Album && $rights->can_delete === true) | ||
@if($this->rights->can_delete === true) | ||
<div class="w-full xl:w-5/6 flex justify-center flex-wrap mb-4 sm:mt-7 pl-7" x-cloak x-show="albumFlags.activeTab === 2"> | ||
<livewire:forms.album.move-panel :album="$album" /> | ||
<livewire:forms.album.move-panel :album="$this->album" /> | ||
</div> | ||
@endif | ||
@if($rights->can_delete === true) | ||
@if($this->rights->can_delete === true) | ||
<div class="w-full xl:w-5/6 flex justify-center flex-wrap mb-4 sm:mt-7 pl-7" x-cloak x-show="albumFlags.activeTab === 3"> | ||
{{-- We only display this menu if there are more than 1 user, it does not make sense otherwise --}} | ||
@if ($userCount > 1) | ||
<livewire:forms.album.transfer :album="$album" lazy /> | ||
@if ($this->num_users > 1) | ||
<livewire:forms.album.transfer :album="$this->album" lazy /> | ||
@endif | ||
<livewire:forms.album.delete-panel :album="$album" /> | ||
<livewire:forms.album.delete-panel :album="$this->album" /> | ||
</div> | ||
@endif | ||
@endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters