Refactor invitation link handling in invitations.blade.php
This commit is contained in:
parent
ee1d4cd45d
commit
f044b0292c
1 changed files with 12 additions and 6 deletions
|
|
@ -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">
|
||||||
<x-forms.button
|
<div class="flex gap-2">
|
||||||
x-on:click="copyToClipboard('{{ $invite->link }}')">Copy
|
<x-forms.input id="null" type="password"
|
||||||
Invitation
|
value="{{ $invite->link }}" />
|
||||||
Link</x-forms.button>
|
<x-forms.button
|
||||||
|
x-on:click="copyToClipboard('{{ $invite->link }}')">Copy
|
||||||
|
Invitation
|
||||||
|
Link</x-forms.button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template x-if="!isHttps">
|
||||||
|
<x-forms.input id="null" type="password"
|
||||||
|
value="{{ $invite->link }}" />
|
||||||
</template>
|
</template>
|
||||||
<x-forms.input id="null" type="password"
|
|
||||||
value="{{ $invite->link }}" />
|
|
||||||
</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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue