Skip to content

Commit 7b9c236

Browse files
committed
Fix links
1 parent 6d5f7a0 commit 7b9c236

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/components/ACLEdit.vue

+10-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
return-object
2828
>
2929
<template v-slot:item.name="{ item }">
30-
<router-link :to="{ name: 'UserProfileAdmin', params: { id: item.source.replace('users/', '') } }">{{
30+
<router-link
31+
v-if="item.source.includes('users/')"
32+
:to="{ name: 'UserProfileAdmin', params: { id: item.source.replace('users/', '') } }"
33+
>{{ item.name }}</router-link
34+
>
35+
<router-link v-if="item.source.includes('groups/')" :to="{ name: 'GroupAdmin' }">{{
3136
item.name
3237
}}</router-link>
3338
</template>
@@ -132,7 +137,8 @@ export default {
132137
methods: {
133138
getMembershipData() {
134139
axios
135-
.get(`/api/v2/${this.endpointForType}/${this.object.id}`)
140+
// .get(`/api/v2/${this.endpointForType}/${this.object.id}`)
141+
.get(`/api/v2/rbac/${this.object.root_type}/${this.object.id}`)
136142
.then(response => {
137143
this.ACLTableData = this.generateAclTable(response.data);
138144
})
@@ -304,7 +310,8 @@ export default {
304310
},
305311
mounted() {
306312
this.listUsers();
307-
this.ACLTableData = this.generateAclTable(this.object);
313+
this.getMembershipData();
314+
// this.ACLTableData = this.generateAclTable(this.object);
308315
},
309316
watch: {
310317
group: {

0 commit comments

Comments
 (0)