Improves the subscription flow for anonymous users by making the routes available, and showing a login button. Clicking login from this page will save a `destination_url` cookie so that when logging in they're redirected back to the subscription page they were at.
13 lines
317 B
JavaScript
13 lines
317 B
JavaScript
import discourseComputed from "discourse-common/utils/decorators";
|
|
import { isEmpty } from "@ember/utils";
|
|
import Component from "@ember/component";
|
|
|
|
export default Component.extend({
|
|
classNames: ["product-list"],
|
|
|
|
@discourseComputed("products")
|
|
emptyProducts(products) {
|
|
return isEmpty(products);
|
|
},
|
|
});
|