Link update instructions to statusbar. (#41)
This commit is contained in:
parent
44ed288e2c
commit
beb708e083
@ -109,11 +109,7 @@ const StatusBar = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={classes.center}>
|
<div className={classes.center}>
|
||||||
<div>{name} ({version})</div>
|
<div>{name} [{version} {moment(buildDate).format('L')}]</div>
|
||||||
<div>{moment(buildDate).format('L')}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className={classes.center}>
|
|
||||||
<VersionCheck />
|
<VersionCheck />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ import get from 'lodash.get';
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useQuery } from '@apollo/react-hooks';
|
import { useQuery } from '@apollo/react-hooks';
|
||||||
import { makeStyles } from '@material-ui/core';
|
import { makeStyles } from '@material-ui/core';
|
||||||
|
import Link from '@material-ui/core/Link';
|
||||||
|
|
||||||
import SYSTEM_STATUS from '../gql/system_status.graphql';
|
import SYSTEM_STATUS from '../gql/system_status.graphql';
|
||||||
import WNS_RECORDS from '../gql/wns_records.graphql';
|
import WNS_RECORDS from '../gql/wns_records.graphql';
|
||||||
@ -15,6 +16,8 @@ import { useQueryStatusReducer } from '../hooks';
|
|||||||
|
|
||||||
const CHECK_INTERVAL = 5 * 60 * 1000;
|
const CHECK_INTERVAL = 5 * 60 * 1000;
|
||||||
|
|
||||||
|
const UPDATE_LINK = 'https://github.com/dxos/kube#updating-the-system';
|
||||||
|
|
||||||
const useStyles = makeStyles(theme => ({
|
const useStyles = makeStyles(theme => ({
|
||||||
update: {
|
update: {
|
||||||
color: theme.palette.error.light
|
color: theme.palette.error.light
|
||||||
@ -59,10 +62,13 @@ const VersionCheck = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{current && (
|
{current && (
|
||||||
<div>SYS: {current}</div>
|
<div>System {current}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{latest && (
|
{latest && (
|
||||||
<div className={classes.update}>(LATEST: {latest})</div>
|
<div className={classes.update}>
|
||||||
|
(<Link href={UPDATE_LINK} target='github' title='Updating your KUBE'>LATEST: {latest}</Link>)
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user