[CORD-1630] Adding model verbose_name and description
Change-Id: If50b38f0328f59852c6ac0a925fb724fdf86782e
diff --git a/src/app/datasources/helpers/model-discoverer.service.ts b/src/app/datasources/helpers/model-discoverer.service.ts
index bab0873..c6dcb7e 100644
--- a/src/app/datasources/helpers/model-discoverer.service.ts
+++ b/src/app/datasources/helpers/model-discoverer.service.ts
@@ -37,6 +37,8 @@
clientUrl?: string; // the view url
tableCfg?: IXosTableCfg;
formCfg?: IXosFormCfg;
+ description: string;
+ verbose_name: string;
}
// Service
@@ -237,8 +239,9 @@
const parentState: string = this.getParentStateFromModel(model);
try {
+ const name = model.verbose_name ? model.verbose_name : model.name;
this.XosNavigationService.add({
- label: this.ConfigHelpers.pluralize(model.name),
+ label: this.ConfigHelpers.pluralize(name),
state: stateName,
parent: parentState
});