FIX: open login modal fails because of missing parameters

This commit is contained in:
Erick Guan 2016-11-11 09:16:29 +01:00 committed by Guo Xiang Tan
parent dc66f6681a
commit 0fbb3fb02b
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import { findAll } from 'discourse/models/login-method';
import computed from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
elementId: 'login-buttons',
@ -6,9 +7,10 @@ export default Ember.Component.extend({
hidden: Ember.computed.equal('buttons.length', 0),
buttons: function() {
return findAll(this.siteSettings);
}.property(),
@computed
buttons() {
return findAll(this.siteSettings, this.capabilities, this.site.isMobileDevice);
},
actions: {
externalLogin: function(provider) {