chore: Remove signup option on invite page when using invite code (#6070)

## Summary
- Removed the "Don't have an account? Sign up" link from the
CloudLoginView when users access the page with an invite code (from
invite link in email)
- The signup option now only shows when there's no invite code present

## Changes
- Modified `CloudLoginView.vue` to conditionally show the signup text
only when `!hasInviteCode`
- Used `<template>` wrapper for better conditional rendering

## Why this change?
Users coming from an invite email link should focus on logging in with
their existing account rather than being presented with a signup option,
as they've already been invited to join.

Fixes the UX issue where invited users might get confused by seeing a
signup option when they should be logging in with their invited account.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6070-chore-Remove-signup-option-on-invite-page-when-using-invite-code-28d6d73d365081e29ac7d58140b2079f)
by [Unito](https://www.unito.io)
This commit is contained in:
Jin Yi
2025-10-17 08:09:55 +09:00
committed by GitHub
parent 5e97614aa1
commit d31df54f57

View File

@@ -76,26 +76,28 @@
</div> </div>
<!-- Terms & Contact --> <!-- Terms & Contact -->
<p v-if="!hasInviteCode" class="mt-5 text-sm text-gray-600"> <template v-if="!hasInviteCode">
{{ t('cloudWaitlist_questionsText') }} <p class="mt-5 text-sm text-gray-600">
<a {{ t('cloudWaitlist_questionsText') }}
href="https://support.comfy.org" <a
class="cursor-pointer text-blue-400 no-underline" href="https://support.comfy.org"
target="_blank" class="cursor-pointer text-blue-400 no-underline"
rel="noopener noreferrer" target="_blank"
> rel="noopener noreferrer"
{{ t('cloudWaitlist_contactLink') }}</a >
>. {{ t('cloudWaitlist_contactLink') }}</a
</p> >.
<p v-else class="mt-5 text-sm text-gray-600"> </p>
{{ t('cloudStart_invited_signup_title') }} <p class="mt-5 text-sm text-gray-600">
<span {{ t('cloudStart_invited_signup_title') }}
class="cursor-pointer text-blue-400 no-underline" <span
@click="navigateToSignup" class="cursor-pointer text-blue-400 no-underline"
> @click="navigateToSignup"
{{ t('cloudStart_invited_signup_description') }}</span >
> {{ t('cloudStart_invited_signup_description') }}</span
</p> >
</p>
</template>
</div> </div>
</div> </div>
</template> </template>