commit | e6f87d359d46041e45bde7952c980cb69319a8ff | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Fri May 24 15:59:16 2019 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Fri May 24 15:59:16 2019 -0700 |
tree | 0b130298606c1cc19ad103c5eaeac9c2a9790ffd | |
parent | bddf31d28d2dba9d1e7da65837e0967bb29d40a1 [diff] |
[SEBA-295] Fixing navigation for related models Change-Id: I5027a5f6a3eba44f64bbd9f7a6acb74c84c27c07
diff --git a/src/app/core/services/helpers/config.helpers.ts b/src/app/core/services/helpers/config.helpers.ts index 0ae1011..ed8d51c 100644 --- a/src/app/core/services/helpers/config.helpers.ts +++ b/src/app/core/services/helpers/config.helpers.ts
@@ -154,7 +154,8 @@ label: 'details', icon: 'search', cb: (item) => { - this.$state.go(this.$state.current.name, {id: item.id}); + const state = this.stateWithParamsForJs(item.leaf_model_name, item.id); + this.$state.go(state.name, state.params); } }, {