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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user