mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 19:37:28 +00:00
show last access time on admin users page (#4795)
Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
@@ -6,6 +6,7 @@ class SysAdminAdminUser {
|
||||
this.contact_email = object.contact_email;
|
||||
this.login_id = object.login_id;
|
||||
this.last_login = object.last_login;
|
||||
this.last_access_time = object.last_access_time;
|
||||
this.create_time = object.create_time;
|
||||
this.is_active = object.is_active;
|
||||
this.is_staff = object.is_staff;
|
||||
|
@@ -5,6 +5,7 @@ class SysAdminUser {
|
||||
this.contact_email = object.contact_email;
|
||||
this.login_id = object.login_id;
|
||||
this.last_login = object.last_login;
|
||||
this.last_access_time = object.last_access_time;
|
||||
this.create_time = object.create_time;
|
||||
this.is_active = object.is_active;
|
||||
this.is_staff = object.is_staff;
|
||||
|
@@ -83,7 +83,7 @@ class Content extends Component {
|
||||
const colSpaceText = <Fragment>{spaceEl}{` / ${gettext('Quota')}`}</Fragment>;
|
||||
|
||||
const colNameText = `${gettext('Name')} / ${gettext('Contact Email')}`;
|
||||
const colCreatedText = `${gettext('Created At')} / ${gettext('Last Login')}`;
|
||||
const colCreatedText = `${gettext('Created At')} / ${gettext('Last Login')} / ${gettext('Last Access')}`;
|
||||
if (isPro) {
|
||||
columns.push(
|
||||
{width: '20%', text: colNameText},
|
||||
@@ -422,6 +422,8 @@ class Item extends Component {
|
||||
{`${item.create_time ? moment(item.create_time).format('YYYY-MM-DD HH:mm') : '--'} /`}
|
||||
<br />
|
||||
{`${item.last_login ? moment(item.last_login).fromNow() : '--'}`}
|
||||
<br />
|
||||
{`${item.last_access_time ? moment(item.last_access_time).fromNow() : '--'}`}
|
||||
</td>
|
||||
<td>
|
||||
{(item.email != username && isOpIconShown) &&
|
||||
|
Reference in New Issue
Block a user