Files
discourse-subscriptions/assets/javascripts/discourse/components/product-list.js.es6
T
Justin DiRose 1ad5b17640 FEATURE: Better UX for anonymous users (#25)
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.
2020-10-28 13:30:26 -05:00

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);
},
});