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:
parent
1d2affbeeb
commit
ad5c82ad41
@ -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">
|
||||
|
@ -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 || '';
|
||||
|
Loading…
Reference in New Issue
Block a user