fix
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
confirmWithText: @js($confirmWithText),
|
confirmWithText: @js($confirmWithText),
|
||||||
confirmWithPassword: @js($confirmWithPassword),
|
confirmWithPassword: @js($confirmWithPassword),
|
||||||
copied: false,
|
copied: false,
|
||||||
|
action: @js($action),
|
||||||
getActionText(action) {
|
getActionText(action) {
|
||||||
return this.checkboxActions[action] || action;
|
return this.checkboxActions[action] || action;
|
||||||
},
|
},
|
||||||
@@ -161,7 +162,7 @@
|
|||||||
<p class="font-bold">Warning</p>
|
<p class="font-bold">Warning</p>
|
||||||
<p>This operation is not reversible. Please proceed with caution.</p>
|
<p>This operation is not reversible. Please proceed with caution.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-2 mb-4">The following actions will be performed:</div>
|
<div class="px-2 mb-4">The following action<span x-show="actions.length + selectedActions.length > 1">s</span> will be performed:</div>
|
||||||
<ul class="mb-4 space-y-2">
|
<ul class="mb-4 space-y-2">
|
||||||
<template x-for="action in actions" :key="action">
|
<template x-for="action in actions" :key="action">
|
||||||
<li class="flex items-center text-red-500">
|
<li class="flex items-center text-red-500">
|
||||||
@@ -171,6 +172,7 @@
|
|||||||
<span x-text="action" class="font-bold"></span>
|
<span x-text="action" class="font-bold"></span>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
<template x-if="selectedActions.length > 0">
|
||||||
<template x-for="action in selectedActions" :key="action">
|
<template x-for="action in selectedActions" :key="action">
|
||||||
<li class="flex items-center text-red-500">
|
<li class="flex items-center text-red-500">
|
||||||
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
@@ -179,6 +181,7 @@
|
|||||||
<span x-text="checkboxActions[action]" class="font-bold"></span>
|
<span x-text="checkboxActions[action]" class="font-bold"></span>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</ul>
|
</ul>
|
||||||
@if($confirmWithText)
|
@if($confirmWithText)
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
@@ -300,7 +303,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
function executeAction() {
|
function executeAction() {
|
||||||
$wire.{{ $action }}(this.selectedActions, this.password);
|
$wire[this.action](this.selectedActions, this.password);
|
||||||
this.modalOpen = false;
|
this.modalOpen = false;
|
||||||
this.resetModal();
|
this.resetModal();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user