1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-28 03:10:45 +00:00

Update lib-content-view.js

This commit is contained in:
孙永强 2025-04-09 14:50:42 +08:00
parent ef4434fc9f
commit 10b24a02e9

View File

@ -195,8 +195,8 @@ class LibContentView extends React.Component {
}
this.updateDirent(fileNameObj, 'is_locked', true);
this.updateDirent(fileNameObj, 'locked_by_me', true);
let lockOwnerName = noticeData.content.lock_user.split('@');
this.updateDirent(fileNameObj, 'lock_owner_name', lockOwnerName[0]);
let lockOwnerName = noticeData.content.lock_user.split('@')[0];
this.updateDirent(fileNameObj, 'lock_owner_name', lockOwnerName);
} else if (noticeData.content.change_event === 'unlocked') {
this.updateDirent(fileNameObj, 'is_locked', false);
this.updateDirent(fileNameObj, 'locked_by_me', false);