Skip to content

Commit

Permalink
update composer to fix livewire locked
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Nov 20, 2023
1 parent 95cc531 commit ac4d339
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public/dist/user.css
public/dist/custom.js

# Pictures we do not commit
public/uploads/**
public/uploads-*/**

# Storage stuff: useless
/storage/*.key
Expand Down
7 changes: 5 additions & 2 deletions app/Livewire/Forms/ImportFromUrlForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@

class ImportFromUrlForm extends Form
{
#[Locked] public ?string $albumID = null;
#[Locked]
public ?string $albumID = null;
#[Locked]
/** @var array<int,string> */
#[Locked] public array $urls = [];
public array $urls = [];

public string $url = '';

/**
Expand Down
18 changes: 9 additions & 9 deletions resources/views/livewire/pages/gallery/album.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ class="my-0 w-5 h-5 mr-0 ml-0 transition-all duration-300
x-masonry
@elseif ($flags->layout() === AlbumLayoutType::GRID)
x-grid
@endif
>
@foreach ($this->album->photos as $photo)
<x-gallery.album.thumbs.photo :data="$photo" albumId="{{ $albumId }}" :layout="$flags->layout()" />
@endforeach
</div>
<livewire:pages.gallery.sensitive-warning :album="$this->album" />
</div>
<x-gallery.album.sharing-links :album="$this->album" x-show="sharingLinksOpen" />
@endif
>
@foreach ($this->album->photos as $photo)
<x-gallery.album.thumbs.photo :data="$photo" albumId="{{ $albumId }}" :layout="$flags->layout()" />
@endforeach
</div>
<livewire:pages.gallery.sensitive-warning :album="$this->album" />
</div>
<x-gallery.album.sharing-links :album="$this->album" x-show="sharingLinksOpen" />
@endif
</div>
2 changes: 1 addition & 1 deletion resources/views/livewire/pages/gallery/photo.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="w-full flex flex-col" x-data="photoView(
$wire.entangle('sessionFlags.are_photo_details_open'),
@entangle('sessionFlags.are_photo_details_open'),
@entangle('sessionFlags.is_fullscreen'),
@js($photo->description !== null),
@js($overlayType),
Expand Down

0 comments on commit ac4d339

Please sign in to comment.