Once clicked the second click is blocked
This commit is contained in:
parent
c4c1e7489e
commit
bfc6578ed6
@ -28,7 +28,9 @@
|
||||
@if (! $hideMarkSent)
|
||||
@can($permissionUpdate)
|
||||
@if ($document->status == 'draft')
|
||||
<x-link id="show-slider-actions-mark-sent-{{ $document->type }}" href="{{ route($markSentRoute, $document->id) }}" @click="e => e.target.classList.add('disabled')">
|
||||
<x-link
|
||||
x-data="{ clicked: false }" x-on:click="clicked = true" x-bind:class="{ 'pointer-events-none cursor-default': clicked }" x-bind:disabled="clicked"
|
||||
id="show-slider-actions-mark-sent-{{ $document->type }}" href="{{ route($markSentRoute, $document->id) }}" @click="e => e.target.classList.add('disabled')">
|
||||
{{ trans($textMarkSent) }}
|
||||
</x-link>
|
||||
@else
|
||||
|
Loading…
x
Reference in New Issue
Block a user