securis/src/main/webapp/src/app/resources/base.ts
.. .. @@ -37,11 +37,9 @@ 37 37 return this.http.delete(url).map(response => response.json()).catch(err => super.processErrorResponse(err)); 38 38 } 39 39 40 - public action(id: any, action: string, method = 'POST') : Observable<any> {40 + public action(id: any, action: string, method = 'POST', params : any = {}) : Observable<any> {41 41 let url = `${this.resource}/${id}/${action}`; 42 - var params = {43 - action: action44 - }42 + params.action = action;45 43 var options:RequestOptionsArgs = { 46 44 url: url, 47 45 method: method,