1
0
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:
lian
2023-08-01 15:27:19 +08:00
committed by GitHub
parent 18c7b34046
commit 4fa64236ca
7 changed files with 21 additions and 14 deletions

View File

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