From 78e3bdc18435ee55e2d90a8bf5fe9376adf09a19 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 30 Jun 2017 11:45:21 +0000
Subject: [PATCH] #0 enh - Added "Show licenses" button in pack form
---
securis/src/main/webapp/src/app/forms/pack.form.component.ts | 3 +++
securis/src/main/webapp/src/app/forms/pack.form.html | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/securis/src/main/webapp/src/app/forms/pack.form.component.ts b/securis/src/main/webapp/src/app/forms/pack.form.component.ts
index 2ee2cc9..97f4832 100644
--- a/securis/src/main/webapp/src/app/forms/pack.form.component.ts
+++ b/securis/src/main/webapp/src/app/forms/pack.form.component.ts
@@ -48,6 +48,9 @@
);
}
+ goLicenses(): void {
+ this.router.navigate([`packs/${this.data.id}/licenses`]);
+ }
goBack(): void {
this.router.navigate([`packs`]);
diff --git a/securis/src/main/webapp/src/app/forms/pack.form.html b/securis/src/main/webapp/src/app/forms/pack.form.html
index b9add49..1e11111 100644
--- a/securis/src/main/webapp/src/app/forms/pack.form.html
+++ b/securis/src/main/webapp/src/app/forms/pack.form.html
@@ -153,6 +153,7 @@
<md-icon>more_vert</md-icon>
</button>
<button [disabled]="!form.form.valid" md-raised-button color="primary" (click)="save()">Save</button>
+ <button *ngIf="!isNew" md-button (click)="goLicenses()"><span i18n>Show licenses</span></button>
<button md-button (click)="goBack()">Cancel</button>
</div>
</md-card-actions>
--
Gitblit v1.3.2