commit | 5d962a37e2484ff79810784d84ee7b61cf3d6e4f | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Aug 01 18:16:14 2017 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Thu Aug 03 17:11:25 2017 -0700 |
tree | 5309ddaedce099d713deee06db9736d96da1b2a6 | |
parent | 4052944f40ce8ff11b053367c5d54a8a904299ea [diff] [blame] |
[CORD-1338] Inline navigation for related models Change-Id: I58ff4a4675d1ce1140fe162f1f8360f2dc9a6527
diff --git a/src/app/datasources/helpers/model-discoverer.service.ts b/src/app/datasources/helpers/model-discoverer.service.ts index 1ef2904..37ecc93 100644 --- a/src/app/datasources/helpers/model-discoverer.service.ts +++ b/src/app/datasources/helpers/model-discoverer.service.ts
@@ -186,11 +186,15 @@ id: null }, data: { - model: model.name + model: model.name, }, component: 'xosCrud', }; + if (angular.isDefined(model.relations)) { + state.data.relations = model.relations; + } + try { this.XosRuntimeStates.addState( this.stateNameFromModel(model),