Add defaultAvatar column.

This commit is contained in:
Yang Luo 2021-07-12 00:00:59 +08:00
parent dc0712c8a5
commit 2e5602d4c1

View File

@ -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: '',