18 lines
430 B
JavaScript
18 lines
430 B
JavaScript
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({
|
|
classNames: ["product-list"],
|
|
@discourseComputed("products")
|
|
emptyProducts(products) {
|
|
return isEmpty(products);
|
|
},
|
|
|
|
@discourseComputed()
|
|
isLoggedIn() {
|
|
return User.current();
|
|
}
|
|
});
|