fix: kube link
This commit is contained in:
parent
e25233075a
commit
f6867bb89a
@ -6,6 +6,7 @@ import React, { useContext } from 'react';
|
||||
import moment from 'moment';
|
||||
|
||||
import { useQuery } from '@apollo/react-hooks';
|
||||
import Link from '@material-ui/core/Link';
|
||||
import TableHead from '@material-ui/core/TableHead';
|
||||
import TableRow from '@material-ui/core/TableRow';
|
||||
import TableBody from '@material-ui/core/TableBody';
|
||||
@ -16,7 +17,6 @@ import { ConsoleContext, useQueryStatusReducer, useSorter } from '../../../hooks
|
||||
|
||||
import Table from '../../../components/Table';
|
||||
import TableCell from '../../../components/TableCell';
|
||||
import AppLink from '../../../components/AppLink';
|
||||
|
||||
const KubeRecords = () => {
|
||||
const { config } = useContext(ConsoleContext);
|
||||
@ -43,11 +43,11 @@ const KubeRecords = () => {
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{appData.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, version, package: packageLink } }) => {
|
||||
{appData.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, version, url } }) => {
|
||||
return (
|
||||
<TableRow key={id} size='small'>
|
||||
<TableCell monospace>
|
||||
{names.map(wrn => <div key={wrn}> <AppLink config={config} wrn={wrn} /> </div>)}
|
||||
{names.map(wrn => <div key={wrn}>{url ? <Link href={url}>{wrn}</Link> : {wrn}}</div>)}
|
||||
</TableCell>
|
||||
<TableCell monospace>
|
||||
{version}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"build": {
|
||||
"name": "@dxos/console-app",
|
||||
"buildDate": "2020-12-10T19:26:51.491Z",
|
||||
"version": "1.2.7-alpha.0"
|
||||
"buildDate": "2020-12-16T17:56:19.213Z",
|
||||
"version": "1.2.7"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user