UX: Missing loading wheel on user notifications page.
This commit is contained in:
parent
156953bc55
commit
fc81209564
|
@ -1,9 +1,12 @@
|
|||
import { observes } from 'ember-addons/ember-computed-decorators';
|
||||
|
||||
export default Ember.ArrayController.extend({
|
||||
needs: ['application'],
|
||||
|
||||
_showFooter: function() {
|
||||
@observes('model.canLoadMore')
|
||||
_showFooter() {
|
||||
this.set("controllers.application.showFooter", !this.get("model.canLoadMore"));
|
||||
}.observes("model.canLoadMore"),
|
||||
},
|
||||
|
||||
currentPath: Em.computed.alias('controllers.application.currentPath'),
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<section class='user-navigation'>
|
||||
{{#mobile-nav class='notifications-nav' desktopClass='notification-list action-list nav-stacked' currentPath=currentPath}}
|
||||
{{#if model}}
|
||||
|
@ -25,5 +24,6 @@
|
|||
<section class='user-right'>
|
||||
{{#load-more class="notification-history user-stream" selector=".user-stream .notification" action="loadMore"}}
|
||||
{{outlet}}
|
||||
{{conditional-loading-spinner condition=model.loadingMore}}
|
||||
{{/load-more}}
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue