mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Updating upgrade icon to link to upgrade segment on settings page.
This commit is contained in:
parent
626458313a
commit
7d2bd9ea5e
2 changed files with 4 additions and 4 deletions
|
|
@ -191,7 +191,7 @@ export function NavBar() {
|
|||
if (status?.update_available && !status?.dockerized && !wrolModeEnabled) {
|
||||
const commitsBehind = status.commits_behind || 0;
|
||||
const branch = status.git_branch || 'unknown';
|
||||
const icon = <Link to='/admin/settings'>
|
||||
const icon = <Link to='/admin/settings#upgrade'>
|
||||
<Icon name='arrow alternate circle up' size='large' color='green'/>
|
||||
</Link>;
|
||||
upgradeIcon = <Popup
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ function UpgradeSegment() {
|
|||
|
||||
// Not available in Docker
|
||||
if (dockerized) {
|
||||
return <Segment>
|
||||
return <Segment id='upgrade'>
|
||||
<Header as='h3'>System Upgrade</Header>
|
||||
<p>Upgrades are not available in Docker environments. Please upgrade your Docker images manually.</p>
|
||||
</Segment>;
|
||||
|
|
@ -130,7 +130,7 @@ function UpgradeSegment() {
|
|||
|
||||
// No update available
|
||||
if (!status?.update_available) {
|
||||
return <Segment>
|
||||
return <Segment id='upgrade'>
|
||||
<Header as='h3'>System Upgrade</Header>
|
||||
<p>Your WROLPi is up to date.</p>
|
||||
<p>Version: <strong>v{status?.version}</strong> on branch <strong>{status?.git_branch || 'unknown'}</strong>
|
||||
|
|
@ -146,7 +146,7 @@ function UpgradeSegment() {
|
|||
}
|
||||
|
||||
// Update available
|
||||
return <Segment>
|
||||
return <Segment id='upgrade'>
|
||||
<Header as='h3'>
|
||||
<Icon name='arrow alternate circle up'/>
|
||||
Upgrade Available
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue