Skip to content

Commit 1643ddb

Browse files
committed
Replace usage of @JSON
1 parent e041741 commit 1643ddb

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

resources/views/blueprints/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
<dropdown-item :text="__('Reset')" class="warning" @click="$refs[`resetter_{{ $blueprint['namespace'] }}_{{ $blueprint['handle'] }}`].confirm()">
200200
<blueprint-resetter
201201
ref="resetter_{{ $blueprint['namespace'] }}_{{ $blueprint['handle'] }}"
202-
:resource='@json($blueprint)'
202+
:resource="{{ Js::from($blueprint) }}"
203203
reload
204204
>
205205
</blueprint-resetter>

resources/views/collections/show.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
handle="{{ $collection->handle() }}"
1010
breadcrumb-url="{{ cp_route('collections.index') }}"
1111
:can-create="{{ Statamic\Support\Str::bool($canCreate) }}"
12-
:create-urls='@json($createUrls)'
12+
:create-urls="{{ Js::from($createUrls) }}"
1313
create-label="{{ $collection->createLabel() }}"
14-
:blueprints='@json($blueprints)'
14+
:blueprints="{{ Js::from($blueprints) }}"
1515
sort-column="{{ $collection->sortField() }}"
1616
sort-direction="{{ $collection->sortDirection() }}"
1717
:columns="{{ $columns->toJson() }}"

resources/views/forms/submission.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
<publish-form
1212
title="{{ $title }}"
13-
:blueprint='@json($blueprint)'
14-
:meta='@json($meta)'
15-
:values='@json($values)'
13+
:blueprint="{{ Js::from($blueprint) }}"
14+
:meta="{{ Js::from($meta) }}"
15+
:values="{{ Js::from($values) }}"
1616
read-only
1717
></publish-form>
1818

resources/views/preferences/edit.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
<preferences-edit-form
1616
title="{{ $title }}"
17-
:blueprint='@json($blueprint)'
18-
:meta='@json($meta)'
19-
:values='@json($values)'
17+
:blueprint="{{ Js::from($blueprint) }}"
18+
:meta="{{ Js::from($meta) }}"
19+
:values="{{ Js::from($values) }}"
2020
action="{{ $actionUrl }}"
2121
:save-as-options="{{ json_encode($saveAsOptions) }}"
2222
></preferences-edit-form>

0 commit comments

Comments
 (0)