1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00
This commit is contained in:
Ranjiwei
2024-07-18 14:30:57 +08:00
committed by GitHub
parent fbd7a32a86
commit 1bc984f515
2 changed files with 3 additions and 3 deletions

View File

@@ -340,7 +340,7 @@ class Item extends React.Component {
<td title={moment(item.deleted_time).format('LLLL')}>{moment(item.deleted_time).format('YYYY-MM-DD')}</td>
<td></td>
<td>
<a href="#" className={isIconShown ? '': 'invisible'} onClick={this.restoreItem} role="button">{gettext('Restore')}</a>
<a href="#" className={isIconShown ? '' : 'invisible'} onClick={this.restoreItem} role="button">{gettext('Restore')}</a>
</td>
</tr>
) : (
@@ -351,7 +351,7 @@ class Item extends React.Component {
<td title={moment(item.deleted_time).format('LLLL')}>{moment(item.deleted_time).format('YYYY-MM-DD')}</td>
<td>{Utils.bytesToSize(item.size)}</td>
<td>
<a href="#" className={isIconShown ? '': 'invisible'} onClick={this.restoreItem} role="button">{gettext('Restore')}</a>
<a href="#" className={isIconShown ? '' : 'invisible'} onClick={this.restoreItem} role="button">{gettext('Restore')}</a>
</td>
</tr>
);

View File

@@ -8,7 +8,7 @@ class RepotrashAPI {
this.server = server;
this.username = username;
this.password = password;
this.token = token; //none
this.token = token;
if (this.token && this.server) {
this.req = axios.create({
baseURL: this.server,