Skip to content

Commit

Permalink
Merge pull request #17 from tv2regionerne/fix/locks-listing-error
Browse files Browse the repository at this point in the history
Fix unable to load tag error
  • Loading branch information
Sylvester Damgaard authored Nov 19, 2024
2 parents e2f2875 + 411052d commit 75ec8d6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/dist/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resources/js/addon.js": {
"file": "assets/addon-2ef42060.js",
"file": "assets/addon-b245a4a0.js",
"isEntry": true,
"src": "resources/js/addon.js"
}
Expand Down
6 changes: 3 additions & 3 deletions resources/js/addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import LocksListing from './components/locks/Listing.vue'
import LockModal from './components/modals/LockModal.vue'

Statamic.booting(() => {
Statamic.component('statamic-locks-listing', LocksListing);
Statamic.component('statamic-locks-modal', LockModal);
Statamic.component('locks-listing', LocksListing);
Statamic.component('locks-modal', LockModal);
});

Statamic.booted(() => {
Expand Down Expand Up @@ -45,7 +45,7 @@ Statamic.booted(() => {
continue;
}

Statamic.$components.append('statamic-locks-modal', {
Statamic.$components.append('locks-modal', {
props: { itemType: handle, itemId: id }
});
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/modals/LockModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>

<div class="p-6">
<p class="text-base">{{ __('Locked by :name, last updated :since', {name: status.locked_by.name, since: status.last_updated}) }}
<p class="text-base">{{ __('Locked by :name, last updated :since', {name: status.locked_by.name, since: status.last_updated}) }}</p>
</div>

<div class="p-4 bg-gray-200 border-t flex items-center justify-between text-sm">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/locks/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<h1 class="flex-1">{{ __('Locks') }}</h1>
</div>

<statamic-locks-listing
<locks-listing
:initial-columns="{{ json_encode($initialColumns) }}"
></statamic-locks-listing>
></locks-listing>

@endsection
2 changes: 1 addition & 1 deletion src/Listeners/LockListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function handle($event)
$path = request()->path();

// Only apply locks in cp
if (!Str::of($path)->startsWith('cp')) {
if (! Str::of($path)->startsWith('cp')) {
return;
}

Expand Down

0 comments on commit 75ec8d6

Please sign in to comment.