From 60c65f2110f65221bc3a71b2887667e78c53c53e Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Wed, 22 Mar 2017 17:44:16 +0000
Subject: [PATCH] #3527 fix - Added pack/license actions and a lot of bugfixing
---
securis/src/main/webapp/src/app/forms/license.form.component.ts | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/securis/src/main/webapp/src/app/forms/license.form.component.ts b/securis/src/main/webapp/src/app/forms/license.form.component.ts
index 90c3ef3..6414714 100644
--- a/securis/src/main/webapp/src/app/forms/license.form.component.ts
+++ b/securis/src/main/webapp/src/app/forms/license.form.component.ts
@@ -50,7 +50,22 @@
reader.readAsText(file);
this.requestFileUploader.clear();
}
+
+
+ licenseAction(action: string) {
+ return this.licenses[action](this.data.id).subscribe(
+ (actionResponse : any) => {
+ this.toaster.success(this.$L.get('Action "{}" executed successfully', action));
+ this.reload();
+ },
+ (err : any) => this.toaster.error(this.$L.get('Action "{}" failed', action))
+ );
+ }
+
+ canBeDeleted() : boolean {
+ return !this.isNew && this.licenses.isActionAvailable('delete', this.data);
+ }
requestFileUploaded(file: File) : void {
console.log(file);
--
Gitblit v1.3.2