mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Add org's favicon.
This commit is contained in:
@ -48,7 +48,8 @@ class OrganizationListPage extends React.Component {
|
||||
name: `organization_${this.state.organizations.length}`,
|
||||
createdTime: moment().format(),
|
||||
displayName: `New Organization - ${this.state.organizations.length}`,
|
||||
websiteUrl: "https://cdn.casbin.com/static/favicon.ico",
|
||||
websiteUrl: "https://door.casbin.com",
|
||||
favicon: "https://cdn.casbin.com/static/favicon.ico",
|
||||
}
|
||||
}
|
||||
|
||||
@ -114,6 +115,19 @@ class OrganizationListPage extends React.Component {
|
||||
// width: '100px',
|
||||
sorter: (a, b) => a.displayName.localeCompare(b.displayName),
|
||||
},
|
||||
{
|
||||
title: 'Favicon',
|
||||
dataIndex: 'favicon',
|
||||
key: 'favicon',
|
||||
width: '50px',
|
||||
render: (text, record, index) => {
|
||||
return (
|
||||
<a target="_blank" rel="noreferrer" href={text}>
|
||||
<img src={text} alt={text} width={40} />
|
||||
</a>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: i18next.t("organization:Website URL"),
|
||||
dataIndex: 'websiteUrl',
|
||||
|
Reference in New Issue
Block a user