show loading indicator on show-more button click
This commit is contained in:
parent
4bc4d10e7d
commit
fd98847863
|
@ -7,6 +7,7 @@ Travis.BuildsController = Em.ArrayController.extend
|
||||||
repoBinding: 'controllers.repo.repo'
|
repoBinding: 'controllers.repo.repo'
|
||||||
tabBinding: 'controllers.repo.tab'
|
tabBinding: 'controllers.repo.tab'
|
||||||
isLoadedBinding: 'content.isLoaded'
|
isLoadedBinding: 'content.isLoaded'
|
||||||
|
isLoadingBinding: 'content.isLoading'
|
||||||
|
|
||||||
showMore: ->
|
showMore: ->
|
||||||
id = @get('repo.id')
|
id = @get('repo.id')
|
||||||
|
|
|
@ -62,6 +62,9 @@
|
||||||
{{#if displayShowMoreButton}}
|
{{#if displayShowMoreButton}}
|
||||||
<p>
|
<p>
|
||||||
{{view view.ShowMoreButton}}
|
{{view view.ShowMoreButton}}
|
||||||
|
{{#if isLoading}}
|
||||||
|
<span class="loading"></span>
|
||||||
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -11,7 +11,7 @@ Travis.reopen
|
||||||
tagName: 'button'
|
tagName: 'button'
|
||||||
classNameBindings: ['isLoading']
|
classNameBindings: ['isLoading']
|
||||||
attributeBindings: ['disabled']
|
attributeBindings: ['disabled']
|
||||||
isLoadingBinding: 'controller.builds.isLoading'
|
isLoadingBinding: 'controller.isLoading'
|
||||||
template: Em.Handlebars.compile('{{view.label}}')
|
template: Em.Handlebars.compile('{{view.label}}')
|
||||||
|
|
||||||
disabledBinding: 'isLoading'
|
disabledBinding: 'isLoading'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user