mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
delete bookCase images
This commit is contained in:
@@ -84,8 +84,8 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body class="font-sans antialiased bg-21gray dark">
|
<body class="font-sans antialiased bg-21gray dark">
|
||||||
<x-notifications z-index="z-50" blur="md" align="center"/>
|
<x-notifications z-index="z-[99999]" blur="md" align="center"/>
|
||||||
<x-dialog z-index="z-50" blur="md" align="center" />
|
<x-dialog z-index="z-[99999]" blur="md" align="center" />
|
||||||
@if(auth()->user())
|
@if(auth()->user())
|
||||||
{{-- HIGHSCORE-CHAT --}}
|
{{-- HIGHSCORE-CHAT --}}
|
||||||
<livewire:chat.highscore-chat/>
|
<livewire:chat.highscore-chat/>
|
||||||
|
|||||||
@@ -143,12 +143,22 @@
|
|||||||
#{{ $loop->iteration }} Bild
|
#{{ $loop->iteration }} Bild
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@if(auth()->user()?->hasRole('super-admin') || app()->environment('local'))
|
@if($bookCase->created_by === auth()->id())
|
||||||
<x-button wire:click="deletePhoto({{ $image->id }})" xs
|
<div x-data="{}">
|
||||||
|
<x-button
|
||||||
|
x-on:click="$wireui.confirmDialog({
|
||||||
|
icon: 'question',
|
||||||
|
title: '{{ __('Are your sure?') }}',
|
||||||
|
accept: {label: '{{ __('Yes') }}',
|
||||||
|
execute: () => $wire.deletePhoto({{ $image->id }})},
|
||||||
|
reject: {label: '{{ __('No, cancel') }}',
|
||||||
|
}})"
|
||||||
|
xs
|
||||||
x-bind="focusableWhenVisible"
|
x-bind="focusableWhenVisible"
|
||||||
class="px-4 py-2 text-sm">
|
class="px-4 py-2 text-sm">
|
||||||
Löschen
|
{{ __('Delete') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|||||||
Reference in New Issue
Block a user