Bulk Action * issue solved.

This commit is contained in:
Cüneyt Şentürk 2020-02-22 12:29:46 +03:00
parent 4337eab13e
commit 7441a31cc4
4 changed files with 20 additions and 0 deletions

View File

@ -20,6 +20,16 @@ BulkActions extends Controller
*/ */
public function action($group, $type, Request $request) public function action($group, $type, Request $request)
{ {
if ($request->get('handle', '*') == '*') {
return response()->json([
'success' => false,
'redirect' => true,
'error' => true,
'data' => [],
'message' => ''
]);
}
// Check is module // Check is module
$module = module($group); $module = module($group);

View File

@ -444,6 +444,10 @@ button:focus
} }
} }
.btn-outline-confirm:disabled span {
opacity: 1 !important;
}
.btn .aka-loader .btn .aka-loader
{ {
display: none !important; display: none !important;

View File

@ -69,6 +69,10 @@ export default class BulkAction {
// Selected item use action // Selected item use action
action() { action() {
if (this.value == '*') {
return;
}
var path = document.getElementsByName("bulk_action_path")[0].getAttribute('value'); var path = document.getElementsByName("bulk_action_path")[0].getAttribute('value');
this.loading = true; this.loading = true;

View File

@ -59,11 +59,13 @@
<div class="mr-4" v-if="bulk_action.count"> <div class="mr-4" v-if="bulk_action.count">
<button type="button" class="btn btn-sm btn-outline-confirm" <button type="button" class="btn btn-sm btn-outline-confirm"
:disabled="bulk_action.value == '*'"
v-if="bulk_action.message.length" v-if="bulk_action.message.length"
@click="bulk_action.modal=true"> @click="bulk_action.modal=true">
<span>{{ trans('general.confirm') }}</span> <span>{{ trans('general.confirm') }}</span>
</button> </button>
<button type="button" class="btn btn-sm btn-outline-confirm" <button type="button" class="btn btn-sm btn-outline-confirm"
:disabled="bulk_action.value == '*'"
v-if="!bulk_action.message.length" v-if="!bulk_action.message.length"
@click="onAction"> @click="onAction">
<span>{{ trans('general.confirm') }}</span> <span>{{ trans('general.confirm') }}</span>