mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-16 17:51:16 +02:00
feat: make item delete confirm on click and directly delete on shift+click
This behavior is similar to how Discord handles the delete button
This commit is contained in:
@@ -63,6 +63,8 @@ hover:tw-bg-zinc-900 p-2 {% if transaction.account.is_asset %}tw-border-dashed{%
|
||||
on mouseenter call bootstrap.Tooltip.getOrCreateInstance(me) end
|
||||
on mouseleave call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
|
||||
on click
|
||||
if event.shiftKey trigger confirmed
|
||||
else
|
||||
call Swal.fire({title: '{% translate 'Are you sure?' %}',
|
||||
text: '{% blocktranslate %}You won\'t be able to revert this!{% endblocktranslate %}',
|
||||
icon: 'warning',
|
||||
|
||||
Reference in New Issue
Block a user