From f11e78dacb3bbf45988a5002bed3bf8e7f97d043 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 17 Apr 2017 15:36:47 +0000
Subject: [PATCH] #3529 fix - Fixed cancel an delete commands on licenses

---
 securis/src/main/webapp/src/app/resources/base.ts |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/securis/src/main/webapp/src/app/resources/base.ts b/securis/src/main/webapp/src/app/resources/base.ts
index c03ed59..352b641 100644
--- a/securis/src/main/webapp/src/app/resources/base.ts
+++ b/securis/src/main/webapp/src/app/resources/base.ts
@@ -37,11 +37,9 @@
       return this.http.delete(url).map(response => response.json()).catch(err => super.processErrorResponse(err));
     }
     
-    public action(id: any, action: string, method = 'POST') : Observable<any> {
+    public action(id: any, action: string, method = 'POST', params : any = {}) : Observable<any> {
       let url = `${this.resource}/${id}/${action}`;
-      var params = {
-        action: action
-      }
+      params.action = action;
       var options:RequestOptionsArgs = {
         url: url,
         method: method,

--
Gitblit v1.3.2