1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 22:33:17 +00:00

revert files tags (#3132)

This commit is contained in:
Michael An
2019-03-19 10:38:05 +08:00
committed by Daniel Pan
parent 413f82b484
commit 2fdbf9e196
3 changed files with 34 additions and 154 deletions

View File

@@ -38,14 +38,8 @@ class DirentMenu extends React.Component {
menuList.splice(2, 1);
}
}
} else if (length > 1) {
menuList = ['Tags'];
for (let i = 0; i < length; i++) {
if (dirents[i].type === 'dir') {
menuList = [];
break;
}
}
} else {
menuList = [];
}
this.setState({
menuList: menuList,