mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
change online-read-write permission UI (#5560)
* change online-read-write permission UI * update * update
This commit is contained in:
@@ -480,7 +480,7 @@ export const Utils = {
|
||||
list.push(SHARE);
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
if (permission == 'rw' || permission == 'cloud-edit') {
|
||||
list.push(DELETE, 'Divider');
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ export const Utils = {
|
||||
}
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
if (permission == 'rw' || permission == 'cloud-edit') {
|
||||
list.push(RENAME, MOVE);
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ export const Utils = {
|
||||
list.push(RENAME, MOVE);
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
if (permission == 'rw' || permission == 'cloud-edit') {
|
||||
list.push(COPY);
|
||||
}
|
||||
|
||||
@@ -544,7 +544,7 @@ export const Utils = {
|
||||
list.push(SHARE);
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
if (permission == 'rw' || permission == 'cloud-edit') {
|
||||
if (!dirent.is_locked || (dirent.is_locked && dirent.locked_by_me)) {
|
||||
list.push(DELETE);
|
||||
}
|
||||
@@ -559,7 +559,7 @@ export const Utils = {
|
||||
}
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
if (permission == 'rw' || permission == 'cloud-edit') {
|
||||
if (!dirent.is_locked || (dirent.is_locked && dirent.locked_by_me)) {
|
||||
list.push(RENAME, MOVE);
|
||||
}
|
||||
@@ -571,7 +571,7 @@ export const Utils = {
|
||||
}
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
if (permission == 'rw' || permission == 'cloud-edit') {
|
||||
list.push(COPY);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user