Merge pull request #3 from rimian/fix-disable-billing-interval

disable billing interval when cannot change
This commit is contained in:
Rimian Perkins 2020-03-21 20:36:00 +11:00 committed by GitHub
commit 77b5567090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -43,7 +43,11 @@
<label for="interval">
{{i18n 'discourse_subscriptions.admin.plans.plan.interval'}}
</label>
{{combo-box valueAttribute="value" content=model.plan.intervals value=model.plan.interval}}
{{#if planFieldDisabled}}
{{input disabled=true value=model.plan.interval}}
{{else}}
{{combo-box valueAttribute="value" content=model.plan.intervals value=model.plan.interval}}
{{/if}}
</p>
<p>
<label for="active">

View File

@ -2,7 +2,7 @@
# name: discourse-subscriptions
# about: Integrates Stripe into Discourse to allow visitors to subscribe
# version: 2.8.0
# version: 2.8.1
# url: https://github.com/rimian/discourse-subscriptions
# authors: Rimian Perkins
@ -44,7 +44,7 @@ after_initialize do
::Stripe.set_app_info(
'Discourse Subscriptions',
version: '2.8.0',
version: '2.8.1',
url: 'https://github.com/rimian/discourse-subscriptions'
)