Fix links.

This commit is contained in:
Yang Luo 2021-02-12 01:07:23 +08:00
parent ee1e08ae20
commit d30c96038d
3 changed files with 36 additions and 1 deletions

View File

@ -113,12 +113,33 @@ class ApplicationListPage extends React.Component {
)
}
},
{
title: 'Organization',
dataIndex: 'organization',
key: 'organization',
width: '200px',
sorter: (a, b) => a.organization.localeCompare(b.organization),
render: (text, record, index) => {
return (
<a href={`/organizations/${text}`}>
{text}
</a>
)
}
},
{
title: 'Providers',
dataIndex: 'providers',
key: 'providers',
width: '300px',
width: '200px',
sorter: (a, b) => a.providers.localeCompare(b.providers),
render: (text, record, index) => {
return (
<a href={`/providers/${text}`}>
{text}
</a>
)
}
},
{
title: 'Action',

View File

@ -105,6 +105,13 @@ class OrganizationListPage extends React.Component {
key: 'websiteUrl',
width: '300px',
sorter: (a, b) => a.websiteUrl.localeCompare(b.websiteUrl),
render: (text, record, index) => {
return (
<a target="_blank" href={text}>
{text}
</a>
)
}
},
{
title: 'Action',

View File

@ -129,6 +129,13 @@ class ProviderListPage extends React.Component {
key: 'providerUrl',
width: '150px',
sorter: (a, b) => a.providerUrl.localeCompare(b.providerUrl),
render: (text, record, index) => {
return (
<a target="_blank" href={text}>
{text}
</a>
)
}
},
{
title: 'Action',