From ce9bc0c6ad58e4117d26a204ffc56bbcdb7fe916 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Tue, 14 Mar 2017 19:41:20 +0000
Subject: [PATCH] #3527 fix - Changes on pack list and routes

---
 securis/src/main/webapp/src/app/forms/pack.form.component.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 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 9c43e46..49b41ec 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
@@ -1,7 +1,7 @@
 import { Http } from '@angular/http';
 import { ToastsManager } from 'ng2-toastr/ng2-toastr';
 
-import { PacksService } from '../resources/packs';
+import { PacksService, PACK_STATUS } from '../resources/packs';
 import { LicenseTypesService } from '../resources/license_types';
 import { LocaleService } from '../common/i18n';
 import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
@@ -100,7 +100,9 @@
   
   ngOnInit(): void {
     this.loadCombos();
-    // this.data = {};
+    if (this.isNew) {
+      this.data.status = PACK_STATUS.CREATED;
+    }
     this.form_title = this.$L.get('Pack data');
     this.form_subtitle = this.$L.get(this.isNew ? 'Create a new licenses pack': 'Modify the licenses pack data') ;
   }

--
Gitblit v1.3.2