make transition to build history work
This commit is contained in:
parent
732f572c6e
commit
f9b1c37d04
|
@ -5,7 +5,7 @@
|
|||
`import config from 'travis/config/environment'`
|
||||
|
||||
BranchRowComponent = Ember.Component.extend
|
||||
|
||||
routing: Ember.inject.service('-routing')
|
||||
tagName: 'li'
|
||||
classNameBindings: ['build.last_build.state']
|
||||
classNames: ['branch-row']
|
||||
|
@ -86,6 +86,6 @@ BranchRowComponent = Ember.Component.extend
|
|||
@triggerBuild()
|
||||
|
||||
viewAllBuilds: (branch) ->
|
||||
console.log('view all builds')
|
||||
@get('routing').transitionTo('builds')
|
||||
|
||||
`export default BranchRowComponent`
|
||||
|
|
|
@ -31,7 +31,10 @@ StatusIconComponent = Ember.Component.extend
|
|||
).property('status')
|
||||
|
||||
isEmpty: (->
|
||||
if @get('status') == null || @get('status') == ''
|
||||
unless @get('status')
|
||||
true
|
||||
else
|
||||
if @get('status') == ''
|
||||
true
|
||||
else
|
||||
false
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
@media #{$medium-up}
|
||||
width: 10em
|
||||
left: 0
|
||||
padding: .3em
|
||||
padding: .4em
|
||||
transform: translate(-42%, -170%)
|
||||
border: 1px solid $teal-dark
|
||||
li
|
||||
|
|
Loading…
Reference in New Issue
Block a user