Fix workflow file URL generation
For a single graph level file URL should have a suffix according to the level. Change-Id: Ia5c72834d4e306a098ff0075cf52707f1efa40b4 Closes-Bug: #1619341
This commit is contained in:
parent
763b954d16
commit
8cf597e301
@ -300,7 +300,10 @@ var WorkflowsTab = React.createClass({
|
|||||||
<DownloadFileButton
|
<DownloadFileButton
|
||||||
label={i18n(ns + 'download_graph_yaml')}
|
label={i18n(ns + 'download_graph_yaml')}
|
||||||
fileName={graphType + '-' + level + '.yaml'}
|
fileName={graphType + '-' + level + '.yaml'}
|
||||||
url={_.result(graphLevelModel, 'url') + '/deployment_tasks/'}
|
url={
|
||||||
|
'/api/clusters/' + cluster.id + '/deployment_tasks/' +
|
||||||
|
{cluster: 'own', release: 'release', plugin: 'plugins'}[level]
|
||||||
|
}
|
||||||
headers={{Accept: 'application/x-yaml'}}
|
headers={{Accept: 'application/x-yaml'}}
|
||||||
fetchOptions={{graph_type: graphType}}
|
fetchOptions={{graph_type: graphType}}
|
||||||
className='btn btn-link btn-download-graph-yaml'
|
className='btn btn-link btn-download-graph-yaml'
|
||||||
|
Loading…
Reference in New Issue
Block a user