Refactor invitation link handling in invitations.blade.php

This commit is contained in:
Andras Bacsai
2024-03-22 12:03:59 +01:00
parent ee1d4cd45d
commit f044b0292c

View File

@@ -28,13 +28,19 @@
<td class="px-5 py-4 text-sm whitespace-nowrap">{{ $invite->role }}</td> <td class="px-5 py-4 text-sm whitespace-nowrap">{{ $invite->role }}</td>
<td class="px-5 py-4 text-sm whitespace-nowrap" x-data="checkProtocol"> <td class="px-5 py-4 text-sm whitespace-nowrap" x-data="checkProtocol">
<template x-if="isHttps"> <template x-if="isHttps">
<div class="flex gap-2">
<x-forms.input id="null" type="password"
value="{{ $invite->link }}" />
<x-forms.button <x-forms.button
x-on:click="copyToClipboard('{{ $invite->link }}')">Copy x-on:click="copyToClipboard('{{ $invite->link }}')">Copy
Invitation Invitation
Link</x-forms.button> Link</x-forms.button>
</div>
</template> </template>
<template x-if="!isHttps">
<x-forms.input id="null" type="password" <x-forms.input id="null" type="password"
value="{{ $invite->link }}" /> value="{{ $invite->link }}" />
</template>
</td> </td>
<td class="px-5 py-4 text-sm whitespace-nowrap"> <td class="px-5 py-4 text-sm whitespace-nowrap">
<x-forms.button <x-forms.button