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'
|
||||
tabBinding: 'controllers.repo.tab'
|
||||
isLoadedBinding: 'content.isLoaded'
|
||||
isLoadingBinding: 'content.isLoading'
|
||||
|
||||
showMore: ->
|
||||
id = @get('repo.id')
|
||||
|
|
|
@ -62,6 +62,9 @@
|
|||
{{#if displayShowMoreButton}}
|
||||
<p>
|
||||
{{view view.ShowMoreButton}}
|
||||
{{#if isLoading}}
|
||||
<span class="loading"></span>
|
||||
{{/if}}
|
||||
</p>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user