discourse-subscriptions/assets/javascripts/discourse/components/product-list.js.es6

18 lines
430 B
Plaintext
Raw Normal View History

import discourseComputed from "discourse-common/utils/decorators";
import User from "discourse/models/user";
import { isEmpty } from "@ember/utils";
import Component from "@ember/component";
export default Component.extend({
2020-07-28 13:46:59 -04:00
classNames: ["product-list"],
@discourseComputed("products")
emptyProducts(products) {
return isEmpty(products);
},
@discourseComputed()
isLoggedIn() {
return User.current();
}
});