DEV: Replace hardcoded result limit with a module constant
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user