From a0f92fe2b51e7b71bd520ca1d7c582faba02a6ec Mon Sep 17 00:00:00 2001 From: Renaud Michotte Date: Mon, 16 Sep 2019 14:55:02 +0200 Subject: [PATCH] circ_policies ui: increase API size limit * Closes #405 Co-Authored-by: Renaud Michotte --- ui/src/app/core/item-type/item-type.service.ts | 6 ++++-- ui/src/app/core/library/library.service.ts | 6 ++++-- ui/src/app/core/patron-type/patron-type.service.ts | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ui/src/app/core/item-type/item-type.service.ts b/ui/src/app/core/item-type/item-type.service.ts index 84baa32262..7cc45afafd 100644 --- a/ui/src/app/core/item-type/item-type.service.ts +++ b/ui/src/app/core/item-type/item-type.service.ts @@ -18,14 +18,16 @@ along with this program. If not, see . */ import { Injectable } from '@angular/core'; -import { HttpClient, HttpHeaders } from '@angular/common/http'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { ApiService } from '../api/api.service'; const httpOptions = { headers: new HttpHeaders({ 'Accept': 'application/json', 'Content-Type': 'application/json' - }) + }), + params: new HttpParams() + .set('size', '9999') }; @Injectable() diff --git a/ui/src/app/core/library/library.service.ts b/ui/src/app/core/library/library.service.ts index 3398914007..409e823344 100644 --- a/ui/src/app/core/library/library.service.ts +++ b/ui/src/app/core/library/library.service.ts @@ -18,14 +18,16 @@ along with this program. If not, see . */ import { Injectable } from '@angular/core'; -import { HttpClient, HttpHeaders } from '@angular/common/http'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { ApiService } from '../api/api.service'; const httpOptions = { headers: new HttpHeaders({ 'Accept': 'application/json', 'Content-Type': 'application/json' - }) + }), + params: new HttpParams() + .set('size', '9999') }; @Injectable() diff --git a/ui/src/app/core/patron-type/patron-type.service.ts b/ui/src/app/core/patron-type/patron-type.service.ts index bc4e9acb53..0c002d5451 100644 --- a/ui/src/app/core/patron-type/patron-type.service.ts +++ b/ui/src/app/core/patron-type/patron-type.service.ts @@ -18,14 +18,16 @@ along with this program. If not, see . */ import { Injectable } from '@angular/core'; -import { HttpClient, HttpHeaders } from '@angular/common/http'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { ApiService } from '../api/api.service'; const httpOptions = { headers: new HttpHeaders({ 'Accept': 'application/json', 'Content-Type': 'application/json' - }) + }), + params: new HttpParams() + .set('size', '9999') }; @Injectable()