FIX: open login modal fails because of missing parameters
This commit is contained in:
parent
dc66f6681a
commit
0fbb3fb02b
|
@ -1,4 +1,5 @@
|
||||||
import { findAll } from 'discourse/models/login-method';
|
import { findAll } from 'discourse/models/login-method';
|
||||||
|
import computed from 'ember-addons/ember-computed-decorators';
|
||||||
|
|
||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
elementId: 'login-buttons',
|
elementId: 'login-buttons',
|
||||||
|
@ -6,9 +7,10 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
hidden: Ember.computed.equal('buttons.length', 0),
|
hidden: Ember.computed.equal('buttons.length', 0),
|
||||||
|
|
||||||
buttons: function() {
|
@computed
|
||||||
return findAll(this.siteSettings);
|
buttons() {
|
||||||
}.property(),
|
return findAll(this.siteSettings, this.capabilities, this.site.isMobileDevice);
|
||||||
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
externalLogin: function(provider) {
|
externalLogin: function(provider) {
|
||||||
|
|
Loading…
Reference in New Issue