rsanchez
2017-06-30 78e3bdc18435ee55e2d90a8bf5fe9376adf09a19
#0 enh - Added "Show licenses" button in pack form
2 files modified
changed files
securis/src/main/webapp/src/app/forms/pack.form.component.ts patch | view | blame | history
securis/src/main/webapp/src/app/forms/pack.form.html patch | view | blame | history
securis/src/main/webapp/src/app/forms/pack.form.component.ts
....@@ -48,6 +48,9 @@
4848 );
4949 }
5050
51
+ goLicenses(): void {
52
+ this.router.navigate([`packs/${this.data.id}/licenses`]);
53
+ }
5154
5255 goBack(): void {
5356 this.router.navigate([`packs`]);
securis/src/main/webapp/src/app/forms/pack.form.html
....@@ -153,6 +153,7 @@
153153 <md-icon>more_vert</md-icon>
154154 </button>
155155 <button [disabled]="!form.form.valid" md-raised-button color="primary" (click)="save()">Save</button>
156
+ <button *ngIf="!isNew" md-button (click)="goLicenses()"><span i18n>Show licenses</span></button>
156157 <button md-button (click)="goBack()">Cancel</button>
157158 </div>
158159 </md-card-actions>