Move Update Button Above Again
This commit is contained in:
parent
dc9ef1ff1e
commit
00cab2e093
1 changed files with 19 additions and 20 deletions
|
|
@ -79,26 +79,6 @@ export function Updatable(props: CommonProps) {
|
|||
|
||||
return (
|
||||
<>
|
||||
{!updates && updateError ? (
|
||||
<>
|
||||
<Span size="md" weight="medium" color="header-primary">Error checking for updates</Span>
|
||||
<ErrorCard className={Margins.top8} style={{ padding: "1em" }}>
|
||||
<p>{updateError.stderr || updateError.stdout || "An unknown error occurred"}</p>
|
||||
</ErrorCard>
|
||||
</>
|
||||
) : isOutdated ? (
|
||||
<>
|
||||
<Paragraph>
|
||||
There {updates.length === 1 ? "is 1 update" : `are ${updates.length} updates`} available. Click the button below to download and install.
|
||||
</Paragraph>
|
||||
<Changes updates={updates} {...props} />
|
||||
</>
|
||||
) : (
|
||||
<Paragraph>
|
||||
You're running the latest version of Equicord.
|
||||
</Paragraph>
|
||||
)}
|
||||
|
||||
<Flex className={Margins.top16} gap="8px">
|
||||
<Button
|
||||
size="small"
|
||||
|
|
@ -153,6 +133,25 @@ export function Updatable(props: CommonProps) {
|
|||
</Button>
|
||||
)}
|
||||
</Flex>
|
||||
{!updates && updateError ? (
|
||||
<>
|
||||
<Span size="md" weight="medium" color="header-primary">Error checking for updates</Span>
|
||||
<ErrorCard className={Margins.top8} style={{ padding: "1em" }}>
|
||||
<p>{updateError.stderr || updateError.stdout || "An unknown error occurred"}</p>
|
||||
</ErrorCard>
|
||||
</>
|
||||
) : isOutdated ? (
|
||||
<>
|
||||
<Paragraph>
|
||||
There {updates.length === 1 ? "is 1 update" : `are ${updates.length} updates`} available. Click the button below to download and install.
|
||||
</Paragraph>
|
||||
<Changes updates={updates} {...props} />
|
||||
</>
|
||||
) : (
|
||||
<Paragraph>
|
||||
You're running the latest version of Equicord.
|
||||
</Paragraph>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue