delete bitcoin event

This commit is contained in:
HolgerHatGarKeineNode
2023-02-26 18:03:44 +01:00
parent 2e5a723910
commit 03fcb375bf
3 changed files with 21 additions and 6 deletions

View File

@@ -8,14 +8,22 @@
<h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('Bitcoin Event') }}</h3>
<div class="flex flex-row space-x-2 items-center">
@can('delete', $bitcoinEvent)
<div>
@if($bitcoinEvent->id)
<x-button negative wire:click="deleteMe">
@if($bitcoinEvent->id)
<div x-data>
<x-button
x-on:click="$wireui.confirmDialog({
icon: 'warning',
title: '{{ __('Are you sure you want to delete this Bitcoin event?') }}',
accept: {label: '{{ __('Yes') }}',
execute: () => $wire.deleteMe()},
reject: {label: '{{ __('No, cancel') }}'},
})"
negative>
<i class="fa fa-thin fa-trash"></i>
{{ __('Delete') }}
</x-button>
@endif
</div>
</div>
@endif
@endcan
<div>
<x-button :href="$fromUrl">

View File

@@ -97,7 +97,7 @@
accept: {label: '{{ __('Yes') }}',
execute: () => $wire.nostr({{ $libraryItem->id }})},
reject: {label: '{{ __('No, cancel') }}'},
})"
})"
>
<i class="fa fa-thin fa-message-plus"></i>
{{ __('Publish on Nostr') }}