Fixed tab bug
Change-Id: I55112e50012633c3a2a60cceafcae216103a6535
diff --git a/src/app/views/crud/crud.ts b/src/app/views/crud/crud.ts
index e281d16..9599823 100644
--- a/src/app/views/crud/crud.ts
+++ b/src/app/views/crud/crud.ts
@@ -77,6 +77,7 @@
private XosModelDiscovererService: IXosModelDiscovererService,
private XosCrudRelation: IXosCrudRelationService
) {
+ this.$log.info('[XosCrud] Setup', $state.current.data);
this.data = this.$state.current.data;
this.model = this.XosModelDiscovererService.get(this.data.model);
@@ -87,7 +88,6 @@
// TODO get the proper URL from model discoverer
this.baseUrl = '#/' + this.model.clientUrl.replace(':id?', '');
- this.$log.debug('[XosCrud]', $state.current.data);
this.tableCfg = this.model.tableCfg;
this.formCfg = this.model.formCfg;
@@ -135,7 +135,7 @@
}
public getRelatedModels(relations: {manytoone: IXosModelRelation[], onetomany: IXosModelRelation[]}, item: any) {
- this.$log.info(`[XosCrud] Managing relation for ${this.data.model}:`, relations);
+ this.$log.debug(`[XosCrud] Managing relation for ${this.data.model}:`, relations);
// loading many to one relations (you'll get a model)
_.forEach(relations.manytoone, (r: IXosModelRelation) => {