ng-miam 4.7.5 → 4.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18420,18 +18420,19 @@
18420
18420
  }
18421
18421
  TagsSelectorComponent.prototype.ngOnInit = function () {
18422
18422
  var _this = this;
18423
+ var page = { size: 30, number: 1 };
18423
18424
  this.subscriptions.push(rxjs.forkJoin([
18424
18425
  // TODO: make it more generic so we don't have to do a PR each time we add a new tag_type
18425
- this.tagsService.all({ remotefilter: { tag_type: 'diet' } })
18426
+ this.tagsService.all({ page: page, remotefilter: { tag_type: 'diet' } })
18426
18427
  .pipe(operators.skipWhile(function (res) { return res.is_loading; }), operators.tap(function (tags) { _this.dietTags = tags.data; })),
18427
- this.tagsService.all({ remotefilter: { tag_type: 'equipment' } })
18428
+ this.tagsService.all({ page: page, remotefilter: { tag_type: 'equipment' } })
18428
18429
  .pipe(operators.skipWhile(function (res) { return res.is_loading; }), operators.tap(function (tags) { _this.equipmentTags = tags.data; })),
18429
- this.tagsService.all({ remotefilter: { tag_type: 'meal_type' } })
18430
+ this.tagsService.all({ page: page, remotefilter: { tag_type: 'meal_type' } })
18430
18431
  .pipe(operators.skipWhile(function (res) { return res.is_loading; }), operators.tap(function (tags) {
18431
18432
  _this.mealTypeTags = tags.data;
18432
18433
  _this.selectedTabTags = tags.data;
18433
18434
  })),
18434
- this.tagsService.all({ remotefilter: { tag_type: 'ingredient_category' } })
18435
+ this.tagsService.all({ page: page, remotefilter: { tag_type: 'ingredient_category' } })
18435
18436
  .pipe(operators.skipWhile(function (res) { return res.is_loading; }), operators.tap(function (tags) { _this.ingredientCategoryTags = tags.data; })),
18436
18437
  ])
18437
18438
  .subscribe(function () { _this.tagsArefetched = true; }));