mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Add defaultAvatar column.
This commit is contained in:
parent
dc0712c8a5
commit
2e5602d4c1
@ -120,7 +120,7 @@ class OrganizationListPage extends React.Component {
|
|||||||
sorter: (a, b) => a.displayName.localeCompare(b.displayName),
|
sorter: (a, b) => a.displayName.localeCompare(b.displayName),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Favicon',
|
title: i18next.t("organization:Favicon"),
|
||||||
dataIndex: 'favicon',
|
dataIndex: 'favicon',
|
||||||
key: 'favicon',
|
key: 'favicon',
|
||||||
width: '50px',
|
width: '50px',
|
||||||
@ -160,6 +160,19 @@ class OrganizationListPage extends React.Component {
|
|||||||
width: '150px',
|
width: '150px',
|
||||||
sorter: (a, b) => a.passwordSalt.localeCompare(b.passwordSalt),
|
sorter: (a, b) => a.passwordSalt.localeCompare(b.passwordSalt),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: i18next.t("organization:Default avatar"),
|
||||||
|
dataIndex: 'defaultAvatar',
|
||||||
|
key: 'defaultAvatar',
|
||||||
|
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("general:Action"),
|
title: i18next.t("general:Action"),
|
||||||
dataIndex: '',
|
dataIndex: '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user