fix(ui): hide already registered button when there are 0 users (#7918)
This commit is contained in:
parent
7556ce2f66
commit
abd2df312c
1 changed files with 15 additions and 13 deletions
|
|
@ -73,6 +73,7 @@ class="p-4 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-2
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@if (!$isFirstUser)
|
||||||
<div class="relative my-6">
|
<div class="relative my-6">
|
||||||
<div class="absolute inset-0 flex items-center">
|
<div class="absolute inset-0 flex items-center">
|
||||||
<div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
|
<div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
|
||||||
|
|
@ -84,10 +85,11 @@ class="p-4 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-2
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="/login"
|
<a href="{{ route('login') }}"
|
||||||
class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
|
class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
|
||||||
{{ __('auth.already_registered') }}
|
{{ __('auth.already_registered') }}
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue