1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00

[library content view] move 'share' into the dropdown menu for each folder/file item (#7508)

This commit is contained in:
llj
2025-02-24 16:54:19 +08:00
committed by GitHub
parent 2f4b1e76e5
commit b4ed45225b
2 changed files with 11 additions and 22 deletions

View File

@@ -494,10 +494,6 @@ export const Utils = {
list.push(DOWNLOAD);
}
if (Utils.isHasPermissionToShare(currentRepoInfo, permission, dirent)) {
list.push(SHARE);
}
if (permission == 'rw' || permission == 'cloud-edit') {
list.push(DELETE, 'Divider');
}
@@ -507,6 +503,10 @@ export const Utils = {
}
}
if (Utils.isHasPermissionToShare(currentRepoInfo, permission, dirent)) {
list.push(SHARE);
}
if (permission == 'rw' || permission == 'cloud-edit') {
list.push(RENAME, MOVE);
}
@@ -561,10 +561,6 @@ export const Utils = {
list.push(DOWNLOAD);
}
if (Utils.isHasPermissionToShare(currentRepoInfo, permission, dirent)) {
list.push(SHARE);
}
if (permission == 'rw' || permission == 'cloud-edit') {
if (!dirent.is_locked || (dirent.is_locked && dirent.locked_by_me)) {
list.push(DELETE);
@@ -580,6 +576,10 @@ export const Utils = {
}
}
if (Utils.isHasPermissionToShare(currentRepoInfo, permission, dirent)) {
list.push(SHARE);
}
if (permission == 'rw' || permission == 'cloud-edit') {
if (!dirent.is_locked || (dirent.is_locked && dirent.locked_by_me)) {
list.push(RENAME, MOVE);