fix:improve modal performance and useability
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
'persistent' => false
|
'persistent' => false
|
||||||
])
|
])
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@teleport('body')
|
||||||
<dialog
|
<dialog
|
||||||
x-data="{ open: false }"
|
x-data="{ open: false }"
|
||||||
x-on:toggle-{{ $key }}.window="open = !open"
|
x-on:toggle-{{ $key }}.window="open = !open"
|
||||||
@@ -48,3 +50,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
@endteleport
|
||||||
|
</div>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<x-section-border class="my-3" />
|
<x-section-border class="my-3" />
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex justify-between gap-3">
|
<div class="flex justify-end gap-3">
|
||||||
{{ $actions}}
|
{{ $actions}}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
'persistent' => false
|
'persistent' => false
|
||||||
])
|
])
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@teleport('body')
|
||||||
<dialog
|
<dialog
|
||||||
{{ $attributes->except('wire:model')->class(["modal"]) }}
|
{{ $attributes->except('wire:model')->class(["modal"]) }}
|
||||||
x-data="{open: @entangle($attributes->wire('model')).live }"
|
x-data="{open: @entangle($attributes->wire('model')).live }"
|
||||||
@@ -44,3 +46,5 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
@endteleport
|
||||||
|
</div>
|
||||||
@@ -86,9 +86,9 @@ new class extends Component {
|
|||||||
<x-button
|
<x-button
|
||||||
wire:click="$toggle('confirmingPortfolioDeletion')"
|
wire:click="$toggle('confirmingPortfolioDeletion')"
|
||||||
wire:loading.attr="disabled"
|
wire:loading.attr="disabled"
|
||||||
icon="o-trash"
|
class="btn text-error"
|
||||||
class="btn btn-ghost btn-circle text-error"
|
|
||||||
title="{{ __('Delete Portfolio') }}"
|
title="{{ __('Delete Portfolio') }}"
|
||||||
|
label="{{ __('Delete Portfolio') }}"
|
||||||
/>
|
/>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
@@ -160,9 +160,9 @@ new class extends Component {
|
|||||||
<x-button
|
<x-button
|
||||||
wire:click="$toggle('confirmingTransactionDeletion')"
|
wire:click="$toggle('confirmingTransactionDeletion')"
|
||||||
wire:loading.attr="disabled"
|
wire:loading.attr="disabled"
|
||||||
icon="o-trash"
|
class="btn text-error"
|
||||||
class="btn btn-ghost btn-circle text-error"
|
|
||||||
title="{{ __('Delete Transaction') }}"
|
title="{{ __('Delete Transaction') }}"
|
||||||
|
label="{{ __('Delete Transaction') }}"
|
||||||
/>
|
/>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user