Use view.jobIdForLog instead of showDownloadLog
The latter is not always refreshed, I don't have time to debug it more thoroughly
This commit is contained in:
parent
07cd8233d4
commit
47630b5bab
|
@ -37,7 +37,9 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if view.showDownloadLog}}
|
{{!TODO: for some reason showDownloadLog, which just delegates to jobIdForLog
|
||||||
|
does not refresh 'if' properly, need further investigation}}
|
||||||
|
{{#if view.jobIdForLog}}
|
||||||
<li>
|
<li>
|
||||||
<a class="download-log" {{bindAttr href="view.plainTextLogUrl"}}>Download log</a>
|
<a class="download-log" {{bindAttr href="view.plainTextLogUrl"}}>Download log</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -76,7 +76,7 @@ Travis.ajax = Em.Object.create
|
||||||
|
|
||||||
xhr.open(method, url)
|
xhr.open(method, url)
|
||||||
|
|
||||||
if options.accepts
|
if options.accepts && !options.headers?.accept?
|
||||||
accepts = []
|
accepts = []
|
||||||
for key, value of options.accepts
|
for key, value of options.accepts
|
||||||
accepts.pushObject(value)
|
accepts.pushObject(value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user