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