Add application logo.

This commit is contained in:
Yang Luo
2021-01-12 22:44:26 +08:00
parent b13ec27981
commit 6459926a0f
3 changed files with 45 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class ApplicationListPage extends React.Component {
name: `application_${this.state.applications.length}`,
createdTime: moment().format(),
displayName: `New Application - ${this.state.applications.length}`,
logo: "https://cdn.jsdelivr.net/gh/casbin/static/img/logo@2x.png",
providers: [],
}
}
@ -96,6 +97,21 @@ class ApplicationListPage extends React.Component {
// width: '100px',
sorter: (a, b) => a.displayName.localeCompare(b.displayName),
},
{
title: 'Logo',
dataIndex: 'logo',
key: 'logo',
width: '100px',
render: (text, record, index) => {
return (
<div>
<a target="_blank" href={text}>
<img src={text} alt={text} width={150} style={{marginBottom: '20px'}}/>
</a>
</div>
)
}
},
{
title: 'Providers',
dataIndex: 'providers',