Merge branch 'settings' into staging
This commit is contained in:
commit
a640321dab
|
@ -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();
|
||||
|
|
|
@ -6,5 +6,3 @@ en:
|
|||
card: Kreditkarte oder Bankkarte
|
||||
success: Bezahlung erfolgreich !
|
||||
submit: Spende bezahlen
|
||||
secret_key: Secret Key
|
||||
public_key: Public Key
|
||||
|
|
|
@ -6,5 +6,3 @@ en:
|
|||
card: Credit or debit card
|
||||
success: Payment Successful!
|
||||
submit: Make Payment
|
||||
secret_key: Secret Key
|
||||
public_key: Public Key
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
en:
|
||||
site_settings:
|
||||
discourse_donations_enabled: "Enable the discourse donations plugin."
|
||||
discourse_donations_enabled: Enable the discourse donations plugin.
|
||||
discourse_donations_secret_key: Stripe Secret Key
|
||||
discourse_donations_public_key: Stripe Public Key
|
||||
|
|
Loading…
Reference in New Issue