#0 enh - Added "Show licenses" button in pack form
| .. | .. |
|---|
| 48 | 48 | ); |
|---|
| 49 | 49 | } |
|---|
| 50 | 50 | |
|---|
| 51 | + goLicenses(): void { |
|---|
| 52 | + this.router.navigate([`packs/${this.data.id}/licenses`]); |
|---|
| 53 | + } |
|---|
| 51 | 54 | |
|---|
| 52 | 55 | goBack(): void { |
|---|
| 53 | 56 | this.router.navigate([`packs`]); |
|---|
| .. | .. |
|---|
| 153 | 153 | <md-icon>more_vert</md-icon> |
|---|
| 154 | 154 | </button> |
|---|
| 155 | 155 | <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> |
|---|
| 156 | 157 | <button md-button (click)="goBack()">Cancel</button> |
|---|
| 157 | 158 | </div> |
|---|
| 158 | 159 | </md-card-actions> |
|---|