FIX: Missing action to show login modal on group page.

This commit is contained in:
Guo Xiang Tan 2017-01-06 11:40:32 +08:00
parent 68300f515c
commit a4e7657bbf
2 changed files with 6 additions and 7 deletions

View File

@ -11,10 +11,6 @@ export default Ember.Controller.extend({
actions: {
loadMore() {
this.get('groups').loadMore();
},
showLogin() {
return this.get('application').send('appRouteAction', 'showLogin');
}
}
});

View File

@ -1,7 +1,8 @@
{{#if hasMembers}}
{{group-membership-button model=model
createNewMessageViaParams='createNewMessageViaParams'}}
{{group-membership-button model=model
createNewMessageViaParams='createNewMessageViaParams'
showLogin='showLogin'}}
{{#if hasMembers}}
{{#load-more selector=".group-members tr" action="loadMore"}}
<table class='group-members'>
<thead>
@ -32,5 +33,7 @@
{{conditional-loading-spinner condition=loading}}
{{else}}
<br>
<div>{{i18n "groups.empty.members"}}</div>
{{/if}}