toggle the subscribe button
This commit is contained in:
parent
e14b4dcd96
commit
4a812ceff6
|
@ -0,0 +1,5 @@
|
|||
import { registerUnbound } from "discourse-common/lib/helpers";
|
||||
|
||||
export default registerUnbound("show-extra-nav", function(model) {
|
||||
return Discourse.SiteSettings.discourse_patrons_extra_nav_subscribe;
|
||||
});
|
|
@ -1,6 +1,5 @@
|
|||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import Plan from "discourse/plugins/discourse-patrons/discourse/models/plan";
|
||||
|
||||
const Subscription = Discourse.Model.extend({
|
||||
@computed("status")
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
{{#if (show-extra-nav)}}
|
||||
{{#link-to 'patrons.subscribe' class='discourse-patrons-subscribe'}}
|
||||
{{i18n 'discourse_patrons.navigation.subscribe'}}
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
en:
|
||||
site_settings:
|
||||
discourse_patrons_enabled: "Enable the Discourse Patrons plugin."
|
||||
discourse_patrons_enabled: Enable the Discourse Patrons plugin.
|
||||
discourse_patrons_extra_nav_subscribe: Show the subscribe button in the primary navigation
|
||||
discourse_patrons_secret_key: Stripe Secret Key
|
||||
discourse_patrons_public_key: Stripe Public Key
|
||||
discourse_patrons_subscription_group: The name of the group the user is added to when successfully subscribed
|
||||
discourse_patrons_currency: Default Currency Code. This can be overridden when creating a subscription plan
|
||||
discourse_patrons_zip_code: "Show Zip Code"
|
||||
discourse_patrons_billing_address: "Collect billing address"
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
plugins:
|
||||
discourse_patrons_enabled:
|
||||
default: false
|
||||
discourse_patrons_extra_nav_subscribe:
|
||||
default: false
|
||||
client: true
|
||||
discourse_patrons_public_key:
|
||||
default: ''
|
||||
client: true
|
||||
discourse_patrons_secret_key:
|
||||
default: ''
|
||||
client: false
|
||||
discourse_patrons_subscription_group:
|
||||
default: ''
|
||||
client: true
|
||||
discourse_patrons_subscription_group_landing_page:
|
||||
default: ''
|
||||
client: true
|
||||
discourse_patrons_payment_page:
|
||||
client: true
|
||||
default: ''
|
||||
|
|
Loading…
Reference in New Issue