mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
show only filenames in downloads
This commit is contained in:
@@ -15,7 +15,8 @@ export default class DownloadSection extends React.Component<IProps, never> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFilenameFromPath() {
|
getFilenameFromPath() {
|
||||||
return this.props.downloadName.split('/').pop()
|
const name = this.props.downloadName.replace(/\\/g, '/')
|
||||||
|
return name.split('/').pop()
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ export default class ProgressBar extends React.Component<IProps, IState> {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div className="ProgressText">
|
<div className="ProgressText">
|
||||||
{capitalize(this.state.status) || 'Waiting'}
|
{capitalize(this.state.status) || 'Waiting'}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user