1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +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:
llj
2023-08-10 19:39:58 +08:00
committed by GitHub
parent d27a8c218e
commit 7fe8fbfc7f
6 changed files with 18 additions and 3 deletions

View File

@@ -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);
}