1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 15:23:05 +00:00

update locked display (#3052)

This commit is contained in:
陈钦亮 2019-03-05 18:21:19 +08:00 committed by Daniel Pan
parent 1d2affbeeb
commit ad5c82ad41
2 changed files with 2 additions and 1 deletions

View File

@ -361,7 +361,7 @@ class DirentListItem extends React.Component {
<img src={`${siteRoot}${dirent.encoded_thumbnail_src}`} className="thumbnail" alt="" /> :
<img src={iconUrl} width="24" alt='' />
}
{dirent.is_locked && <img className="locked" src={mediaUrl + 'img/file-locked-32.png'} alt={gettext('locked')} title={dirent.lock_owner}/>}
{dirent.is_locked && <img className="locked" src={mediaUrl + 'img/file-locked-32.png'} alt={gettext('locked')} title={dirent.lock_owner_name}/>}
</div>
</td>
<td className="name">

View File

@ -17,6 +17,7 @@ class Dirent {
this.is_locked = json.is_locked || false;
this.lock_time = json.lock_time || '';
this.lock_owner= json.lock_owner || null;
this.lock_owner_name= json.lock_owner_name || null;
this.locked_by_me = json.locked_by_me || false;
this.modifier_name = json.modifier_name || '';
this.modifier_email = json.modifier_email || '';