From 6078e6018ca05bcc0203241dc44071a59cf5e78c Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 10 Mar 2017 16:33:31 +0000
Subject: [PATCH] #3527 fix - Customizing packs listing
---
securis/src/main/webapp/src/app/forms/pack.form.component.ts | 12 ++++++++----
1 files changed, 8 insertions(+), 4 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 90c51bd..852dba3 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
@@ -30,22 +30,26 @@
this.http.get('organization')
.map(response => response.json().map((org : any) => <IComboOption>{id: org.id, label: `(${org.code}) ${org.name}`}))
.subscribe(
- data => this.organizations = data,
+ data => this.organizations = (<IComboOption[]>data).sort((e1, e2) => e1.label.localeCompare(e2.label)),
err => console.error('Error loading orgs')
);
this.http.get('licensetype')
.map(response => response.json().map((lt : any) => <IComboOption>{id: lt.id, label: `(${lt.code}) ${lt.name}`}))
.subscribe(
- data => this.licensetypes = data,
- err => console.error('Error loading orgs')
+ data => this.licensetypes = (<IComboOption[]>data).sort((e1, e2) => e1.label.localeCompare(e2.label)),
+ err => console.error('Error loading license types')
);
}
-
+ log(obj: any) {
+ console.log(obj)
+ }
+
ngOnInit(): void {
this.loadCombos();
this.data = {};
this.form_title = this.$L.get('Pack data');
+ this.form_subtitle = this.$L.get('Create a new licenses pack');
}
--
Gitblit v1.3.2