DEV: Replace hardcoded result limit with a module constant

This commit is contained in:
Rishabh
2019-01-21 14:21:53 +05:30
parent f1b33cc64e
commit 8720c2cd5c
2 changed files with 5 additions and 2 deletions
@@ -34,7 +34,7 @@ const QueryResultComponent = Ember.Component.extend({
@computed("content.result_count")
resultCount: function(count) {
if (count === 1000) {
if (count === this.get("content.result_limit")) {
return I18n.t("explorer.max_result_count", { count });
} else {
return I18n.t("explorer.result_count", { count });