Fixing the debug panel
Change-Id: I9045ce1c2080d0af1c02642eff0479714d6dc212
diff --git a/src/app/core/debug/debug-model.ts b/src/app/core/debug/debug-model.ts
index 9760520..1dff053 100644
--- a/src/app/core/debug/debug-model.ts
+++ b/src/app/core/debug/debug-model.ts
@@ -17,6 +17,7 @@
// NOTE this component will render the hidden model fields for debug purposes
import {IXosConfigHelpersService} from '../services/helpers/config.helpers';
+import * as _ from 'lodash';
export class XosDebugModelController {
static $inject = [
'ConfigHelpers'
@@ -31,7 +32,7 @@
}
$onInit() {
- this.debugFields = this.ConfigHelpers.form_excluded_fields;
+ this.debugFields = _.orderBy(this.ConfigHelpers.form_excluded_fields);
}
public toLabel(string: string): string {
diff --git a/src/app/core/services/helpers/config.helpers.ts b/src/app/core/services/helpers/config.helpers.ts
index 0e17d73..f60b9b6 100644
--- a/src/app/core/services/helpers/config.helpers.ts
+++ b/src/app/core/services/helpers/config.helpers.ts
@@ -97,9 +97,7 @@
public form_excluded_fields = this.excluded_fields.concat([
'id',
'policy_status',
- 'policy_code',
- 'backend_status',
- 'backend_code',
+ 'backend_status'
]);
constructor(