Bulk Action * issue solved.
This commit is contained in:
parent
4337eab13e
commit
7441a31cc4
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user