Increased slot filler publication load quantity to 50

This commit is contained in:
Stefan Zermatten
2021-08-09 20:54:29 +02:00
parent a35f9221a2
commit 16e2b1249f
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ Meteor.publish('slotFillers', function(slotId){
}
this.autorun(function(){
// Get the limit of the documents the user can fetch
var limit = self.data('limit') || 20;
var limit = self.data('limit') || 50;
check(limit, Number);
// Get the search term

View File

@@ -212,7 +212,7 @@ export default {
},
loadMore(){
if (this.currentLimit >= this.countAll) return;
this._subs['slotFillers'].setData('limit', this.currentLimit + 20);
this._subs['slotFillers'].setData('limit', this.currentLimit + 50);
},
insert(){
if (!this.selectedNode) return;
@@ -232,7 +232,7 @@ export default {
return Creatures.findOne(this.creatureId);
},
currentLimit(){
return this._subs['slotFillers'].data('limit') || 20;
return this._subs['slotFillers'].data('limit') || 50;
},
countAll(){
return this._subs['slotFillers'].data('countAll');