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

View File

@ -102,18 +102,25 @@ const Config = () => {
<Table.Row>
<Table.RowHeaderCell>A</Table.RowHeaderCell>
<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.Body>
</Table>
{IPAddress && (
<InlineNotification
variant="info"
title={`It can take up to 48 hours for these updates to reflect
globally.`}
/>
)}
<Button
className="w-fit"
disabled={!IPAddress}
onClick={handleSubmitDomain}
variant="primary"
shape="default"