Rename property to statusImageBranch.

This commit is contained in:
Kirill Lashuk 2013-01-12 21:07:23 +03:00
parent ec14d96236
commit 8d4c28b7f7
2 changed files with 4 additions and 4 deletions

View File

@ -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}}

View File

@ -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: (->