2019-12-12 19:54:32 -05:00
|
|
|
import Route from "@ember/routing/route";
|
2024-10-02 19:53:20 -04:00
|
|
|
import { service } from "@ember/service";
|
2019-09-12 22:56:26 -04:00
|
|
|
|
2024-10-02 19:53:20 -04: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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|