diff --git a/assets/javascripts/discourse/templates/s/show.hbs b/assets/javascripts/discourse/templates/s/show.hbs index c6e1b47..41ae5a1 100644 --- a/assets/javascripts/discourse/templates/s/show.hbs +++ b/assets/javascripts/discourse/templates/s/show.hbs @@ -26,12 +26,13 @@
+ {{subscribe-card cardElement=cardElement}} + {{#if loading}} {{loading-spinner}} {{else if isAnonymous}} {{login-required}} {{else}} - {{subscribe-card cardElement=cardElement}} {{d-button disabled=loading diff --git a/assets/stylesheets/common/subscribe.scss b/assets/stylesheets/common/subscribe.scss index b8c9edd..c571235 100644 --- a/assets/stylesheets/common/subscribe.scss +++ b/assets/stylesheets/common/subscribe.scss @@ -14,6 +14,10 @@ width: 100%; } +.anon #card-element { + display: none; +} + .StripeElement { box-sizing: border-box;