REFACTOR: Rename s to subscribe (#86)
This commit is contained in:
parent
6414a1f6e5
commit
5ead25feb6
|
@ -119,7 +119,7 @@ export default Component.extend({
|
|||
const showOnRoute =
|
||||
currentRoute !== "discovery.s" &&
|
||||
!currentRoute.split(".")[0].includes("admin") &&
|
||||
currentRoute.split(".")[0] !== "s";
|
||||
currentRoute.split(".")[0] !== "subscribe";
|
||||
|
||||
if (!this.site.show_campaign_banner) {
|
||||
return false;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export default function () {
|
||||
this.route("s", function () {
|
||||
this.route("subscribe", { path: "/s" }, function () {
|
||||
this.route("show", { path: "/:subscription-id" });
|
||||
});
|
||||
}
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
<p class="campaign-banner-info-description">{{i18n "discourse_subscriptions.campaign.body"}}</p>
|
||||
|
||||
{{#if product}}
|
||||
{{#link-to "s.show" product disabled=product.subscribed class="btn btn-primary campaign-banner-info-button"}}
|
||||
{{#link-to "subscribe.show" product disabled=product.subscribed class="btn btn-primary campaign-banner-info-button"}}
|
||||
{{d-icon "far-heart"}} {{d-icon "heart" class="hover-heart"}} {{i18n "discourse_subscriptions.campaign.button"}}
|
||||
{{/link-to}}
|
||||
{{else}}
|
||||
{{#link-to "s" class="btn btn-primary campaign-banner-info-button"}}
|
||||
{{#link-to "subscribe" class="btn btn-primary campaign-banner-info-button"}}
|
||||
{{d-icon "far-heart"}} {{d-icon "heart" class="hover-heart"}} {{i18n "discourse_subscriptions.campaign.button"}}
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{#if isLoggedIn}}
|
||||
<div class="product-purchase">
|
||||
{{#if product.repurchaseable}}
|
||||
{{#link-to "s.show" product.id class="btn btn-primary"}}
|
||||
{{#link-to "subscribe.show" product.id class="btn btn-primary"}}
|
||||
{{i18n "discourse_subscriptions.subscribe.title"}}
|
||||
{{/link-to}}
|
||||
{{#if product.subscribed}}
|
||||
|
@ -22,7 +22,7 @@
|
|||
{{i18n "discourse_subscriptions.subscribe.go_to_billing"}}
|
||||
{{/link-to}}
|
||||
{{else}}
|
||||
{{#link-to "s.show" product.id disabled=product.subscribed class="btn btn-primary"}}
|
||||
{{#link-to "subscribe.show" product.id disabled=product.subscribed class="btn btn-primary"}}
|
||||
{{i18n "discourse_subscriptions.subscribe.title"}}
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue