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