rsanchez
2017-06-30 5b1c6728347969ce633982d4ec770b123abc286d
#0 fix - Missing actions in license form
1 files modified
changed files
securis/src/main/webapp/src/app/forms/license.form.component.ts patch | view | blame | history
securis/src/main/webapp/src/app/forms/license.form.component.ts
....@@ -1,5 +1,5 @@
11 import { Http } from '@angular/http';
2
-import { LicensesService } from '../resources/licenses';
2
+import { LicensesService, LICENSE_ACTIONS } from '../resources/licenses';
33 import { PacksService } from '../resources/packs';
44 import { LocaleService } from '../common/i18n';
55 import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
....@@ -20,6 +20,7 @@
2020 export class LicenseFormComponent extends FormBase {
2121
2222 @ViewChild('requestFileUploader') requestFileUploader : TdFileInputComponent;
23
+ license_menu_options = LICENSE_ACTIONS;
2324 pack: any = null;
2425
2526 constructor(private http: Http,
....@@ -130,9 +131,7 @@
130131 this.packs.get(packId).subscribe(
131132 packData => {
132133 this.pack = packData;
133
- if (this.isNew) {
134
- this.data.metadata = packData.metadata;
135
- }
134
+ this.data.metadata = packData.metadata;
136135 },
137136 err => console.error(err)
138137 );