Skip to content

Commit

Permalink
Replace usage of @JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Feb 4, 2025
1 parent e041741 commit 1643ddb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion resources/views/blueprints/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<dropdown-item :text="__('Reset')" class="warning" @click="$refs[`resetter_{{ $blueprint['namespace'] }}_{{ $blueprint['handle'] }}`].confirm()">
<blueprint-resetter
ref="resetter_{{ $blueprint['namespace'] }}_{{ $blueprint['handle'] }}"
:resource='@json($blueprint)'
:resource="{{ Js::from($blueprint) }}"
reload
>
</blueprint-resetter>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/collections/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
handle="{{ $collection->handle() }}"
breadcrumb-url="{{ cp_route('collections.index') }}"
:can-create="{{ Statamic\Support\Str::bool($canCreate) }}"
:create-urls='@json($createUrls)'
:create-urls="{{ Js::from($createUrls) }}"
create-label="{{ $collection->createLabel() }}"
:blueprints='@json($blueprints)'
:blueprints="{{ Js::from($blueprints) }}"
sort-column="{{ $collection->sortField() }}"
sort-direction="{{ $collection->sortDirection() }}"
:columns="{{ $columns->toJson() }}"
Expand Down
6 changes: 3 additions & 3 deletions resources/views/forms/submission.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

<publish-form
title="{{ $title }}"
:blueprint='@json($blueprint)'
:meta='@json($meta)'
:values='@json($values)'
:blueprint="{{ Js::from($blueprint) }}"
:meta="{{ Js::from($meta) }}"
:values="{{ Js::from($values) }}"
read-only
></publish-form>

Expand Down
6 changes: 3 additions & 3 deletions resources/views/preferences/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

<preferences-edit-form
title="{{ $title }}"
:blueprint='@json($blueprint)'
:meta='@json($meta)'
:values='@json($values)'
:blueprint="{{ Js::from($blueprint) }}"
:meta="{{ Js::from($meta) }}"
:values="{{ Js::from($values) }}"
action="{{ $actionUrl }}"
:save-as-options="{{ json_encode($saveAsOptions) }}"
></preferences-edit-form>
Expand Down

0 comments on commit 1643ddb

Please sign in to comment.