Fix event type display on the jobs page.
This commit is contained in:
parent
806fd899bc
commit
aef53f4554
|
@ -22,11 +22,6 @@ require 'travis/model'
|
|||
|
||||
_config: Ember.attr('object', key: 'config')
|
||||
|
||||
# TODO add eventType to the api for api build requests
|
||||
eventType: (->
|
||||
if @get('pullRequest') then 'pull_request' else 'push'
|
||||
).property('pull_request')
|
||||
|
||||
log: ( ->
|
||||
@set('isLogAccessed', true)
|
||||
Travis.Log.create(job: this)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div {{bind-attr class="view.color"}}>
|
||||
<div id="new-summary">
|
||||
<div class="request-kind">
|
||||
<div {{bind-attr class=":kind-icon build.eventType"}}>
|
||||
<div {{bind-attr class=":kind-icon job.build.eventType"}}>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
|
|
Loading…
Reference in New Issue
Block a user