Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unable to load tag error #17

Merged
merged 2 commits into from
Nov 19, 2024
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

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