Rename property to statusImageBranch.
This commit is contained in:
parent
ec14d96236
commit
8d4c28b7f7
|
@ -37,7 +37,7 @@
|
|||
<p>
|
||||
<label>{{t repositories.branch}}:</label>
|
||||
{{#if view.branches.isLoaded}}
|
||||
{{view Ember.Select contentBinding="view.branches" selectionBinding="view.branch" optionLabelPath="content.commit.branch" optionValuePath="content.commit.branch"}}
|
||||
{{view Ember.Select contentBinding="view.branches" selectionBinding="view.statusImageBranch" optionLabelPath="content.commit.branch" optionValuePath="content.commit.branch"}}
|
||||
{{else}}
|
||||
<span class="loading"></span>
|
||||
{{/if}}
|
||||
|
|
|
@ -173,11 +173,11 @@
|
|||
@get('repo.branches') if @get('active')
|
||||
).property('active', 'repo.branches')
|
||||
|
||||
setSelectedBranch: (->
|
||||
setStatusImageBranch: (->
|
||||
if @get('repo.branches.isLoaded')
|
||||
@set('branch', @get('repo.branches').findProperty('commit.branch', @get('build.commit.branch')))
|
||||
@set('statusImageBranch', @get('repo.branches').findProperty('commit.branch', @get('build.commit.branch')))
|
||||
else
|
||||
@set('branch', null)
|
||||
@set('statusImageBranch', null)
|
||||
).observes('repo.branches', 'repo.branches.isLoaded', 'build.commit.branch')
|
||||
|
||||
urlRepo: (->
|
||||
|
|
Loading…
Reference in New Issue
Block a user