mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-29 20:14:19 +00:00
Update lib-content-view.js
This commit is contained in:
parent
ef4434fc9f
commit
10b24a02e9
@ -195,8 +195,8 @@ class LibContentView extends React.Component {
|
|||||||
}
|
}
|
||||||
this.updateDirent(fileNameObj, 'is_locked', true);
|
this.updateDirent(fileNameObj, 'is_locked', true);
|
||||||
this.updateDirent(fileNameObj, 'locked_by_me', true);
|
this.updateDirent(fileNameObj, 'locked_by_me', true);
|
||||||
let lockOwnerName = noticeData.content.lock_user.split('@');
|
let lockOwnerName = noticeData.content.lock_user.split('@')[0];
|
||||||
this.updateDirent(fileNameObj, 'lock_owner_name', lockOwnerName[0]);
|
this.updateDirent(fileNameObj, 'lock_owner_name', lockOwnerName);
|
||||||
} else if (noticeData.content.change_event === 'unlocked') {
|
} else if (noticeData.content.change_event === 'unlocked') {
|
||||||
this.updateDirent(fileNameObj, 'is_locked', false);
|
this.updateDirent(fileNameObj, 'is_locked', false);
|
||||||
this.updateDirent(fileNameObj, 'locked_by_me', false);
|
this.updateDirent(fileNameObj, 'locked_by_me', false);
|
||||||
|
Loading…
Reference in New Issue
Block a user