|
83 | 83 | <hr> |
84 | 84 |
|
85 | 85 | @if ((count($posts) > 1 || $posts->currentPage() > 1) && (Gate::allows('deletePosts', $thread) || Gate::allows('restorePosts', $thread)) && count($selectablePosts) > 0) |
86 | | - <form :action="postActions[selectedPostAction]" method="POST"> |
| 86 | + <form :action="postActions[state.selectedPostAction]" method="POST"> |
87 | 87 | @csrf |
88 | | - <input type="hidden" name="_method" :value="postActionMethods[selectedPostAction]" /> |
| 88 | + <input type="hidden" name="_method" :value="postActionMethods[state.selectedPostAction]" /> |
89 | 89 | @endif |
90 | 90 |
|
91 | 91 | <div class="row mb-3"> |
|
114 | 114 | <label for="selectAllPosts"> |
115 | 115 | {{ trans('forum::posts.select_all') }} |
116 | 116 | </label> |
117 | | - <input type="checkbox" value="" id="selectAllPosts" class="align-middle" @click="toggleAll" :checked="selectedPosts.length == posts.data.length"> |
| 117 | + <input type="checkbox" value="" id="selectAllPosts" class="align-middle" @click="toggleAll" :checked="state.selectedPosts.length == posts.data.length"> |
118 | 118 | </div> |
119 | 119 | </div> |
120 | 120 | @endif |
|
126 | 126 | @if ((count($posts) > 1 || $posts->currentPage() > 1) && (Gate::allows('deletePosts', $thread) || Gate::allows('restorePosts', $thread)) && count($selectablePosts) > 0) |
127 | 127 | <div class="fixed-bottom-right pb-xs-0 pr-xs-0 pb-sm-3 pr-sm-3"> |
128 | 128 | <transition name="fade"> |
129 | | - <div class="card text-white bg-secondary shadow-sm" v-if="selectedPosts.length"> |
| 129 | + <div class="card text-white bg-secondary shadow-sm" v-if="state.selectedPosts.length"> |
130 | 130 | <div class="card-header text-center"> |
131 | 131 | {{ trans('forum::general.with_selection') }} |
132 | 132 | </div> |
|
135 | 135 | <div class="input-group-prepend"> |
136 | 136 | <label class="input-group-text" for="bulk-actions">{{ trans_choice('forum::general.actions', 1) }}</label> |
137 | 137 | </div> |
138 | | - <select class="custom-select" id="bulk-actions" v-model="selectedPostAction"> |
| 138 | + <select class="custom-select" id="bulk-actions" v-model="state.selectedPostAction"> |
139 | 139 | <option value="delete">{{ trans('forum::general.delete') }}</option> |
140 | 140 | <option value="restore">{{ trans('forum::general.restore') }}</option> |
141 | 141 | </select> |
142 | 142 | </div> |
143 | 143 |
|
144 | 144 | @if (config('forum.general.soft_deletes')) |
145 | | - <div class="form-check mb-3" v-if="selectedPostAction == 'delete'"> |
| 145 | + <div class="form-check mb-3" v-if="state.selectedPostAction == 'delete'"> |
146 | 146 | <input class="form-check-input" type="checkbox" name="permadelete" value="1" id="permadelete"> |
147 | 147 | <label class="form-check-label" for="permadelete"> |
148 | 148 | {{ trans('forum::general.perma_delete') }} |
|
0 commit comments