diff --git a/resources/views/linkstack/modules/admin-bar.blade.php b/resources/views/linkstack/modules/admin-bar.blade.php index b662a2730..f21938d2f 100644 --- a/resources/views/linkstack/modules/admin-bar.blade.php +++ b/resources/views/linkstack/modules/admin-bar.blade.php @@ -130,23 +130,27 @@ function submitForm() { document.getElementById('logoutForm').submit(); } - - @if(auth()->user()->role != 'admin') - + var confirmationLink = document.getElementById("confirmationLink"); + if (confirmationLink) { + confirmationLink.addEventListener("click", function(event) { + event.preventDefault(); + showConfirmation(); + }); + } + @endif
@endif -@endif \ No newline at end of file +@endif