Skip to content

Commit

Permalink
Update invite page button logic to change when inviting or enabling d…
Browse files Browse the repository at this point in the history
…omain allowlisting (#6572)

* Update invite page button logic to change when inviting or enabling domain allowlisting

* Delete extra files

* Deleted more unnecessary files from commit

* Updated button text from "Skip" to "Skip for now"
  • Loading branch information
ericokuma authored and ericpgreen2 committed Feb 7, 2025
1 parent ee81b57 commit 99348db
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
$: organization = $page.params.organization;
$: project = $page.params.project;
// TODO: check args and show welcome page
let allowDomain = false;
let invited = false;
$: userDomain = getUserDomain();
$: isPublicDomain = userDomainIsPublic();
const addToAllowlist = createAdminServiceCreateProjectWhitelistedDomain();
$: buttonText = invited || allowDomain ? "Continue" : "Skip for now";
async function onContinue() {
if (allowDomain) {
try {
Expand All @@ -62,8 +64,6 @@
}
$: copyLink = `${$page.url.protocol}//${$page.url.host}/${organization}/${project}`;
let invited = false;
</script>

<div class="flex flex-col gap-5 w-[600px] my-16 sm:my-32 md:my-64 mx-auto">
Expand Down Expand Up @@ -110,6 +110,6 @@
wide
class="mx-auto"
>
{invited ? "Continue" : "Skip"}
{buttonText}
</Button>
</div>

1 comment on commit 99348db

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.