Fixed document send and receive double action click issue..
This commit is contained in:
		@@ -15,7 +15,9 @@
 | 
			
		||||
                @can($permissionUpdate)
 | 
			
		||||
                    @if ($document->status == 'draft')
 | 
			
		||||
                        <x-link href="{{ route($markReceivedRoute, $document->id) }}" id="show-slider-actions-mark-received-{{ $document->type }}" kind="secondary" @click="e => e.target.classList.add('disabled')">
 | 
			
		||||
                            <x-link.loading>
 | 
			
		||||
                                {{ trans($textMarkReceived) }}
 | 
			
		||||
                            </x-link.loading>
 | 
			
		||||
                        </x-link>
 | 
			
		||||
                    @else
 | 
			
		||||
                        <x-button kind="secondary" disabled="disabled">
 | 
			
		||||
 
 | 
			
		||||
@@ -28,10 +28,10 @@
 | 
			
		||||
            @if (! $hideMarkSent)
 | 
			
		||||
                @can($permissionUpdate)
 | 
			
		||||
                    @if ($document->status == 'draft')
 | 
			
		||||
                        <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')">
 | 
			
		||||
                        <x-link id="show-slider-actions-mark-sent-{{ $document->type }}" href="{{ route($markSentRoute, $document->id) }}" @click="e => e.target.classList.add('disabled')">
 | 
			
		||||
                            <x-link.loading>
 | 
			
		||||
                                {{ trans($textMarkSent) }}
 | 
			
		||||
                            </x-link.loading>
 | 
			
		||||
                        </x-link>
 | 
			
		||||
                    @else
 | 
			
		||||
                        <x-button disabled="disabled">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user