| .. | .. |
|---|
| 1 | 1 | import { Http } from '@angular/http'; |
|---|
| 2 | | -import { LicensesService } from '../resources/licenses'; |
|---|
| 2 | +import { LicensesService, LICENSE_ACTIONS } from '../resources/licenses'; |
|---|
| 3 | 3 | import { PacksService } from '../resources/packs'; |
|---|
| 4 | 4 | import { LocaleService } from '../common/i18n'; |
|---|
| 5 | 5 | import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core'; |
|---|
| .. | .. |
|---|
| 20 | 20 | export class LicenseFormComponent extends FormBase { |
|---|
| 21 | 21 | |
|---|
| 22 | 22 | @ViewChild('requestFileUploader') requestFileUploader : TdFileInputComponent; |
|---|
| 23 | + license_menu_options = LICENSE_ACTIONS; |
|---|
| 23 | 24 | pack: any = null; |
|---|
| 24 | 25 | |
|---|
| 25 | 26 | constructor(private http: Http, |
|---|
| .. | .. |
|---|
| 130 | 131 | this.packs.get(packId).subscribe( |
|---|
| 131 | 132 | packData => { |
|---|
| 132 | 133 | this.pack = packData; |
|---|
| 133 | | - if (this.isNew) { |
|---|
| 134 | | - this.data.metadata = packData.metadata; |
|---|
| 135 | | - } |
|---|
| 134 | + this.data.metadata = packData.metadata; |
|---|
| 136 | 135 | }, |
|---|
| 137 | 136 | err => console.error(err) |
|---|
| 138 | 137 | ); |
|---|