Commit 9394a348 authored by janis.streib's avatar janis.streib 🦉
Browse files

UPD: hide feature, thats require a token

parent 16d51805
......@@ -71,7 +71,7 @@ export default {
address: '/dnsvs/bcds',
icon: 'map-signs',
visible() {
return self.$sysinfo_js_mods.includes('dnsvs')
return self.$sysinfo_js_mods.includes('dnsvs') && self.$store.state.token
}
},
{
......@@ -80,7 +80,7 @@ export default {
address: '/macauth',
icon: 'blender-phone',
visible() {
return self.$sysinfo_js_mods.includes('macauth')
return self.$sysinfo_js_mods.includes('macauth') && self.$store.state.token
}
},
{
......@@ -89,7 +89,7 @@ export default {
address: '/dhcp-leases',
icon: 'list-ol',
visible() {
return 'dhcp_leases' in self.$sysinfo_mods_by_name
return 'dhcp_leases' in self.$sysinfo_mods_by_name && self.$store.state.token
}
},
{
......@@ -113,7 +113,7 @@ export default {
address: '/org/type',
icon: ['far', 'building'],
visible() {
return self.$store.state.xup_perm != null && 'org.rw_oet' in self.$store.state.xup_perm
return self.$store.state.token && self.$store.state.xup_perm != null && 'org.rw_oet' in self.$store.state.xup_perm
}
},
{ has_sub_pages: true, label: 'Gruppen', address: '/cntl/groups', icon: 'users' }
......@@ -125,7 +125,7 @@ export default {
address: '/tools/macfinder',
icon: 'search-location',
visible() {
return self.$sysinfo_js_mods.includes('macfinder')
return self.$sysinfo_js_mods.includes('macfinder') && self.$store.state.token
}
},
{
......@@ -143,7 +143,7 @@ export default {
address: '/tools/ap_list',
icon: 'broadcast-tower',
visible() {
return self.$sysinfo_js_mods.includes('ap_list')
return self.$sysinfo_js_mods.includes('ap_list') && self.$store.state.token
}
}
],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment