Compare commits

..

No commits in common. "9e778adc51b0605ca44647268b2b5f5286516f85" and "8c3c2105dd582a5e4cd055765d61fcbb8904101b" have entirely different histories.

2 changed files with 3 additions and 18 deletions

View File

@ -1,12 +1,5 @@
<div class="flex flex-col gap-6">
@if(empty($code))
<x-auth-header :title="__('Invitation Required')" :description="__('An invitation is required to create an account')" />
<div class="text-center">
<p class="text-sm text-zinc-600 dark:text-zinc-400 mb-4">{{ __('Registration is by invitation only. Please contact an administrator to receive an invitation.') }}</p>
<flux:link :href="route('login')" wire:navigate class="text-sm">{{ __('Return to login') }}</flux:link>
</div>
@elseif($invitationAccepted)
@if($invitationAccepted)
<x-auth-header :title="__('Invitation Already Used')" :description="__('This invitation has already been accepted')" />
<div class="text-center">

View File

@ -68,17 +68,9 @@
@endswitch
</div>
<div class="flex gap-2 items-center">
<flux:button variant="primary" size="sm">Copy invite link</flux:button>
@if($inv->isPending())
<flux:button x-data="{copied: false}" variant="primary" size="sm" x-on:click="
navigator.clipboard.writeText('{{ $inv->getInviteUrl() }}').then(() => {
copied = true;
setTimeout(() => copied = false, 2000);
});
">
<span x-show="!copied">Copy invite link</span>
<span x-show="copied">Copied!</span>
</flux:button>
<flux:button variant="danger" size="sm" icon="trash" wire:click="deleteInvitation({{ $inv->id }})" />
<flux:button variant="danger" size="sm" icon="trash" wire:click="deleteInvitation({{ $inv->id }})" />
@endif
</div>
</x-card>