31
31
<li ng-repeat="user in user.trusted" ng-include="'trustTree'"></li>
32
32
</ul>
33
33
</script>
34
- <ul class="depth-tree">
35
34
<li ng-repeat="user in TrustSettingsCtrl.trustTree" ng-include="'trustTree'">
36
35
</li>
37
36
</ul> -->
37
+ <ul class =" depth-tree" >
38
+ <trust-hierarchy-partial :trust-tree =" trustTree" />
39
+ </ul >
38
40
</div >
39
41
40
42
</div >
@@ -50,11 +52,12 @@ import { usersApi } from '@/api'
50
52
import { AuthStore } from ' @/composables/stores/auth'
51
53
// import TrustFeedbackModal from '@/components/modals/trust/Feedback.vue'
52
54
import TrustList from ' @/components/trust/TrustList.vue'
55
+ import TrustHierarchyPartial from ' @/components/trust/TrustHierarchyPartial.vue'
53
56
import { useRoute , useRouter } from ' vue-router'
54
57
55
58
export default {
56
59
name: ' TrustSettings' ,
57
- components: { TrustList },
60
+ components: { TrustList, TrustHierarchyPartial },
58
61
beforeRouteEnter (to , from , next ) {
59
62
next (vm => {
60
63
vm .hierarchy = to .query .hierarchy
@@ -81,7 +84,7 @@ export default {
81
84
let query = { hierarchy: v .hierarchy }
82
85
if (query .hierarchy ) delete query .hierarchy
83
86
else query .hierarchy = true
84
- $router .replace ({ name: $route .name , params: $route .params , query })
87
+ $router .replace ({ name: $route .name , params: { ... $route .params , saveScrollPos : true } , query })
85
88
}
86
89
87
90
const trustListCallback = () => console .log (' trustListCallback' )
0 commit comments