Merge branch 'settings' into staging

This commit is contained in:
Rimian Perkins
2017-02-28 12:39:31 +11:00
4 changed files with 11 additions and 9 deletions
@@ -1,13 +1,17 @@
import { ajax } from 'discourse/lib/ajax';
import { getRegister } from 'discourse-common/lib/get-owner';
export default Ember.Component.extend({
donateAmounts: [1, 5, 10, 25],
result: null,
donateAmounts: [5, 10],
amount: null,
stripe: null,
stripe: function() {
return Stripe(Discourse.discourse_donations_public_key);
}.property('stripe'),
init() {
this._super();
var public_key = getRegister(this).lookup('site-settings:main').discourse_donations_public_key
this.set('stripe', Stripe(public_key));
},
card: function() {
var elements = this.get('stripe').elements();