Skip to content

Commit 3dc801c

Browse files
committed
Fix Vue state variable usages in blade-bootstrap thread views
1 parent 9b9921e commit 3dc801c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui-presets/blade-bootstrap/views/post/partials/list.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div @if (!$post->trashed())id="post-{{ $post->sequence }}"@endif
22
class="post card mb-2 {{ $post->trashed() || $thread->trashed() ? 'deleted' : '' }}"
3-
:class="{ 'border-primary': selectedPosts.includes({{ $post->id }}) }">
3+
:class="{ 'border-primary': state.selectedPosts.includes({{ $post->id }}) }">
44
<div class="card-header">
55
@if (!isset($single) || !$single)
66
<span class="float-end">
77
<a href="{{ Forum::route('thread.show', $post) }}">#{{ $post->sequence }}</a>
88
@if ($post->sequence != 1)
99
@can ('deletePosts', $post->thread)
1010
@can ('delete', $post)
11-
<input type="checkbox" name="posts[]" :value="{{ $post->id }}" v-model="selectedPosts">
11+
<input type="checkbox" name="posts[]" :value="{{ $post->id }}" v-model="state.selectedPosts">
1212
@endcan
1313
@endcan
1414
@endif

ui-presets/blade-bootstrap/views/thread/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
<label class="input-group-text" for="category-id">{{ trans_choice('forum::categories.category', 1) }}</label>
332332
</div>
333333
<select name="category_id" id="category-id" class="form-select">
334-
@include ('forum::category.partials.options', ['categories' => $threadDestinationCategories, 'hide' => $thread->category])
334+
@include ('forum::category.partials.options', ['hide' => $thread->category])
335335
</select>
336336
</div>
337337

0 commit comments

Comments
 (0)