rsanchez
2017-04-17 f11e78dacb3bbf45988a5002bed3bf8e7f97d043
securis/src/main/webapp/src/app/resources/base.ts
....@@ -37,11 +37,9 @@
3737 return this.http.delete(url).map(response => response.json()).catch(err => super.processErrorResponse(err));
3838 }
3939
40
- public action(id: any, action: string, method = 'POST') : Observable<any> {
40
+ public action(id: any, action: string, method = 'POST', params : any = {}) : Observable<any> {
4141 let url = `${this.resource}/${id}/${action}`;
42
- var params = {
43
- action: action
44
- }
42
+ params.action = action;
4543 var options:RequestOptionsArgs = {
4644 url: url,
4745 method: method,