mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
Add tag (#3281)
This commit is contained in:
@@ -168,7 +168,7 @@ class TreeView extends React.Component {
|
||||
getMenuList = (node) => {
|
||||
let menuList = [];
|
||||
|
||||
let { NEW_FOLDER, NEW_FILE, COPY, MOVE, RENAME, DELETE, OPEN_VIA_CLIENT} = TextTranslation;
|
||||
let { NEW_FOLDER, NEW_FILE, COPY, MOVE, RENAME, DELETE, OPEN_VIA_CLIENT, TAGS} = TextTranslation;
|
||||
|
||||
if (!node) {
|
||||
return [NEW_FOLDER, NEW_FILE];
|
||||
@@ -177,7 +177,7 @@ class TreeView extends React.Component {
|
||||
if (node.object.type === 'dir') {
|
||||
menuList = [NEW_FOLDER, NEW_FILE, COPY, MOVE, RENAME, DELETE];
|
||||
} else {
|
||||
menuList = [RENAME, DELETE, COPY, MOVE, OPEN_VIA_CLIENT];
|
||||
menuList = [RENAME, DELETE, COPY, MOVE, TAGS, OPEN_VIA_CLIENT];
|
||||
}
|
||||
|
||||
return menuList;
|
||||
|
Reference in New Issue
Block a user