2019-12-13 11:54:32 +11:00
|
|
|
import Route from "@ember/routing/route";
|
2024-10-02 17:53:20 -06:00
|
|
|
import { service } from "@ember/service";
|
2019-09-13 12:56:26 +10:00
|
|
|
|
2024-10-02 17:53:20 -06:00
|
|
|
export default class SubscribeRoute extends Route {
|
|
|
|
|
@service router;
|
|
|
|
|
@service siteSettings;
|
|
|
|
|
|
|
|
|
|
beforeModel() {
|
|
|
|
|
const pricingTableEnabled =
|
|
|
|
|
this.siteSettings.discourse_subscriptions_pricing_table_enabled;
|
|
|
|
|
|
|
|
|
|
if (pricingTableEnabled) {
|
|
|
|
|
this.router.transitionTo("subscriptions");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|