Put statusImages in actions

This commit is contained in:
Piotr Sarnacki 2015-01-08 14:16:53 +01:00
parent b335bc9f20
commit e6bde154ec

View File

@ -14,6 +14,11 @@ Travis.reopen
@get('repos.isLoaded') && @get('repos.length') == 0 @get('repos.isLoaded') && @get('repos.length') == 0
).property('repos.isLoaded', 'repos.length') ).property('repos.isLoaded', 'repos.length')
statusImageUrl: (->
Travis.Urls.statusImage(@get('controller.repo.slug'))
).property('controller.repo.slug')
actions:
statusImages: -> statusImages: ->
@popupCloseAll() @popupCloseAll()
view = Travis.StatusImagesView.create(toolsView: this) view = Travis.StatusImagesView.create(toolsView: this)
@ -21,10 +26,6 @@ Travis.reopen
view.appendTo($('body')) view.appendTo($('body'))
event.stopPropagation() event.stopPropagation()
statusImageUrl: (->
Travis.Urls.statusImage(@get('controller.repo.slug'))
).property('controller.repo.slug')
ReposEmptyView: Travis.View.extend ReposEmptyView: Travis.View.extend
template: (-> template: (->
if Travis.config.pro if Travis.config.pro