show loading indicator on show-more button click

This commit is contained in:
Floyd Pink 2013-07-27 16:11:12 -04:00
parent 4bc4d10e7d
commit fd98847863
3 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Travis.BuildsController = Em.ArrayController.extend
repoBinding: 'controllers.repo.repo'
tabBinding: 'controllers.repo.tab'
isLoadedBinding: 'content.isLoaded'
isLoadingBinding: 'content.isLoading'
showMore: ->
id = @get('repo.id')

View File

@ -62,6 +62,9 @@
{{#if displayShowMoreButton}}
<p>
{{view view.ShowMoreButton}}
{{#if isLoading}}
<span class="loading"></span>
{{/if}}
</p>
{{/if}}
{{else}}

View File

@ -11,7 +11,7 @@ Travis.reopen
tagName: 'button'
classNameBindings: ['isLoading']
attributeBindings: ['disabled']
isLoadingBinding: 'controller.builds.isLoading'
isLoadingBinding: 'controller.isLoading'
template: Em.Handlebars.compile('{{view.label}}')
disabledBinding: 'isLoading'