Update UI when IP address is unavailable and project is created via auctions

This commit is contained in:
Shreerang Kale 2025-01-31 16:20:03 +05:30 committed by IshaVenikar
parent 6dcee29487
commit 90e9260eb6
2 changed files with 44 additions and 29 deletions

View File

@ -62,6 +62,7 @@ const Domains = () => {
headingText="Domains" headingText="Domains"
button={ button={
<> <>
{!project.auctionId && (
<Button <Button
as="a" as="a"
href="add" href="add"
@ -71,10 +72,16 @@ const Domains = () => {
> >
Add domain Add domain
</Button> </Button>
)}
</> </>
} }
> >
{domains.map((domain) => { {project.auctionId ? (
<p className="text-gray-500">
Custom domains not supported for auction driven deployments.
</p>
) : (
domains.map((domain) => {
return ( return (
<DomainCard <DomainCard
domains={domains} domains={domains}
@ -86,7 +93,8 @@ const Domains = () => {
onUpdate={fetchDomains} onUpdate={fetchDomains}
/> />
); );
})} })
)}
</ProjectSettingContainer> </ProjectSettingContainer>
); );
}; };

View File

@ -102,18 +102,25 @@ const Config = () => {
<Table.Row> <Table.Row>
<Table.RowHeaderCell>A</Table.RowHeaderCell> <Table.RowHeaderCell>A</Table.RowHeaderCell>
<Table.Cell>@</Table.Cell> <Table.Cell>@</Table.Cell>
<Table.Cell>{IPAddress ?? 'Not Configured'}</Table.Cell> <Table.Cell>
<p className={!IPAddress ? 'text-red-500' : ''}>
{IPAddress ?? 'Not available'}
</p>
</Table.Cell>
</Table.Row> </Table.Row>
</Table.Body> </Table.Body>
</Table> </Table>
{IPAddress && (
<InlineNotification <InlineNotification
variant="info" variant="info"
title={`It can take up to 48 hours for these updates to reflect title={`It can take up to 48 hours for these updates to reflect
globally.`} globally.`}
/> />
)}
<Button <Button
className="w-fit" className="w-fit"
disabled={!IPAddress}
onClick={handleSubmitDomain} onClick={handleSubmitDomain}
variant="primary" variant="primary"
shape="default" shape="default"