This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/components/user-summary-topics-list.js
2020-12-01 15:31:26 -03:00

15 lines
366 B
JavaScript

import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
// should be kept in sync with 'UserSummary::MAX_SUMMARY_RESULTS'
const MAX_SUMMARY_RESULTS = 6;
export default Component.extend({
tagName: "",
@discourseComputed("items.length")
hasMore(length) {
return length >= MAX_SUMMARY_RESULTS;
},
});