Select current branch in status images popup.
This commit is contained in:
parent
64b94711c7
commit
ec14d96236
|
@ -173,6 +173,13 @@
|
||||||
@get('repo.branches') if @get('active')
|
@get('repo.branches') if @get('active')
|
||||||
).property('active', 'repo.branches')
|
).property('active', 'repo.branches')
|
||||||
|
|
||||||
|
setSelectedBranch: (->
|
||||||
|
if @get('repo.branches.isLoaded')
|
||||||
|
@set('branch', @get('repo.branches').findProperty('commit.branch', @get('build.commit.branch')))
|
||||||
|
else
|
||||||
|
@set('branch', null)
|
||||||
|
).observes('repo.branches', 'repo.branches.isLoaded', 'build.commit.branch')
|
||||||
|
|
||||||
urlRepo: (->
|
urlRepo: (->
|
||||||
'https://' + location.host + Travis.Urls.repo(@get('repo.slug'))
|
'https://' + location.host + Travis.Urls.repo(@get('repo.slug'))
|
||||||
).property('repo.slug')
|
).property('repo.slug')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user