Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Fix broken "Download" logs button #247

Merged
merged 2 commits into from May 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/components/AllocationFiles/AllocationFiles.js
Expand Up @@ -298,14 +298,14 @@ class AllocationFiles extends Component {
</span>
)

const baseUrl = `${location.protocol}//${window.NOMAD_ENDPOINT}`
const downloadPath = `nomad/${this.props.router.params.region}/download${this.props.file.File}`

const downloadBtn = this.props.file.File.indexOf('<') >= 0
? ''
: (
<form
style={{ display: 'inline', float: 'right' }} method='get' action={ `${baseUrl}/${downloadPath}` } >
style={{ display: 'inline', float: 'right' }} method='get'
action={ `${window.NOMAD_ENDPOINT}/${downloadPath}` } >
<input type='hidden' name='client' value={ this.props.node.HTTPAddr } />
<input type='hidden' name='allocID' value={ this.props.allocation.ID } />
{ oversizedWarning }
Expand Down