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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user