1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 20:37:42 +00:00

repo admin manage share/upload links (#4408)

* repo admin manage share/upload links

* [repo share/upload links] bugfix & improvement

Co-authored-by: lian <lian@seafile.com>
Co-authored-by: llj <lingjun.li1@gmail.com>
This commit is contained in:
lian
2020-03-09 16:30:27 +08:00
committed by GitHub
parent 54fe3d0fbc
commit e27c0350d0
6 changed files with 521 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ class MylibRepoMenu extends React.Component {
generatorOperations = () => {
let repo = this.props.repo;
let showResetPasswordMenuItem = repo.encrypted && enableResetEncryptedRepoPassword && isEmailConfigured;
let operations = ['Rename', 'Transfer', 'History Setting', 'API Token'];
let operations = ['Rename', 'Transfer', 'History Setting', 'API Token', 'Share Links'];
if (repo.encrypted) {
operations.push('Change Password');
}
@@ -108,6 +108,9 @@ class MylibRepoMenu extends React.Component {
case 'API Token':
translateResult = 'API Token'; // translation is not needed here
break;
case 'Share Links':
translateResult = gettext('Share Links');
break;
default:
break;
}