mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
[dir view] for file items: added 'Properties' to its context menu, (#5581)
* [dir view] for file items: added 'Properties' to its context menu, 'more' dropdown menus in <tr> & the top toolbar - click 'Properties', the 'info' panel will be shown * [dir view] operation menu for file item: removed 'Comment', moved 'Properties'
This commit is contained in:
@@ -22,6 +22,7 @@ const TextTranslation = {
|
||||
'COMMENT' : {key : 'Comment', value : gettext('Comment')},
|
||||
'HISTORY' : {key : 'History', value : gettext('History')},
|
||||
'ACCESS_LOG' : {key : 'Access Log', value : gettext('Access Log')},
|
||||
'PROPERTIES' : {key : 'Properties', value : gettext('Properties')},
|
||||
'TAGS': {key: 'Tags', value: gettext('Tags')},
|
||||
'ONLYOFFICE_CONVERT': {key: 'Convert with ONLYOFFICE', value: gettext('Convert with ONLYOFFICE')}
|
||||
};
|
||||
|
@@ -527,7 +527,7 @@ export const Utils = {
|
||||
getFileOperationList: function(isRepoOwner, currentRepoInfo, dirent, isContextmenu) {
|
||||
let list = [];
|
||||
const { SHARE, DOWNLOAD, DELETE, RENAME, MOVE, COPY, TAGS, UNLOCK, LOCK, MARK_AS_DRAFT, UNMARK_AS_DRAFT,
|
||||
COMMENT, HISTORY, ACCESS_LOG, OPEN_VIA_CLIENT, ONLYOFFICE_CONVERT } = TextTranslation;
|
||||
COMMENT, HISTORY, ACCESS_LOG, PROPERTIES, OPEN_VIA_CLIENT, ONLYOFFICE_CONVERT } = TextTranslation;
|
||||
const permission = dirent.permission;
|
||||
const { isCustomPermission, customPermission } = Utils.getUserPermission(permission);
|
||||
|
||||
@@ -601,10 +601,12 @@ export const Utils = {
|
||||
list.push(MARK_AS_DRAFT);
|
||||
}
|
||||
}
|
||||
/*
|
||||
if (enableFileComment) {
|
||||
list.push(COMMENT);
|
||||
}
|
||||
list.push(HISTORY);
|
||||
*/
|
||||
list.push(PROPERTIES, HISTORY);
|
||||
if (isPro && fileAuditEnabled) {
|
||||
list.push(ACCESS_LOG);
|
||||
}
|
||||
@@ -615,9 +617,11 @@ export const Utils = {
|
||||
if (!currentRepoInfo.encrypted) {
|
||||
list.push(COPY);
|
||||
}
|
||||
/*
|
||||
if (enableFileComment) {
|
||||
list.push(COMMENT);
|
||||
}
|
||||
*/
|
||||
list.push(HISTORY);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user