1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

MOD: copy follow token in repo-api-token frontend (#4219)

This commit is contained in:
Alex Happy
2019-11-04 17:37:27 +08:00
committed by Daniel Pan
parent b15b1bdffc
commit c9c43c5791
2 changed files with 11 additions and 11 deletions

View File

@@ -62,12 +62,13 @@ class APITokenItem extends React.Component {
onPermissionChanged={this.onUpdateAPIToken}
/>
</td>
<td>{item.api_token}</td>
<td>
<span
className="far fa-copy action-icon"
onClick={this.onCopyAPIToken}
/>
<Fragment>
<span>{item.api_token}</span>
{this.state.isOperationShow &&
<span className="far fa-copy action-icon" onClick={this.onCopyAPIToken} />
}
</Fragment>
</td>
<td>
<span
@@ -95,7 +96,7 @@ class RepoAPITokenDialog extends React.Component {
super(props);
this.state = {
apiTokenList: [],
permission: '',
permission: 'rw',
appName: '',
errorMsg: '',
loading: true,
@@ -267,8 +268,7 @@ class RepoAPITokenDialog extends React.Component {
<th width="22%">{gettext('App Name')}</th>
<th width="15%">{gettext('Permission')}</th>
<th width="53%">{gettext('Access Token')}</th>
<th width="5%"></th>
<th width="5%"></th>
<th width="10%"></th>
</tr>
</thead>
<tbody>