mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: dont disabled login button when registrations are disabled
This commit is contained in:
@@ -40,11 +40,8 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<div class="ml-auto flex items-center space-x-4">
|
<div class="ml-auto flex items-center space-x-4">
|
||||||
<a
|
<a
|
||||||
href={data.options?.registration_enabled ? resolve(`/login${returnParam}`) : '#'}
|
href={resolve(`/login${returnParam}`)}
|
||||||
class="rounded bg-neutral-700 px-3 py-1 text-white hover:bg-neutral-800 {data.options
|
class="rounded bg-neutral-700 px-3 py-1 text-white hover:bg-neutral-800">Login</a
|
||||||
?.registration_enabled
|
|
||||||
? ''
|
|
||||||
: 'cursor-not-allowed bg-neutral-800 text-neutral-500!'}">Login</a
|
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href={data.options?.registration_enabled ? resolve(`/register${returnParam}`) : '#'}
|
href={data.options?.registration_enabled ? resolve(`/register${returnParam}`) : '#'}
|
||||||
|
|||||||
Reference in New Issue
Block a user