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

modify a-simulate to a tag (#2581)

This commit is contained in:
杨顺强
2018-11-30 11:52:19 +08:00
committed by Daniel Pan
parent 20acecebe1
commit ef3a1407a3
5 changed files with 33 additions and 42 deletions

View File

@@ -9,7 +9,8 @@ const propTypes = {
class UploadListItem extends React.Component {
onUploadCancel = () => {
onUploadCancel = (e) => {
e.preventDefault();
let item = this.props.item;
item.resumableFile.cancel();
this.props.onUploadCancel(item);
@@ -44,7 +45,7 @@ class UploadListItem extends React.Component {
</td>
<td width="20%" className="upload-operation">
{ progress !== 100 ?
<span className="a-simulate" onClick={this.onUploadCancel}>{gettext(('cancel'))}</span> :
<a href="#" onClick={this.onUploadCancel}>{gettext(('cancel'))}</a> :
<span>{gettext('uploaded')}</span>
}
</td>