Skip to content
Snippets Groups Projects
Commit 3ba78b69 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

ADD: navbar support for js-only-mods

parent 2407f5ab
No related branches found
No related tags found
No related merge requests found
Pipeline #273682 passed with warnings
......@@ -13,9 +13,12 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<b-collapse is-nav id="navbarNavDropdown" ref="navdropdown">
<b-navbar-nav>
<b-nav-item v-if="$sysinfo_mods_by_name['dnsvs']" to="/dnsvs/"
<b-nav-item v-if="$sysinfo_js_mods.includes('dnsvs')" to="/dnsvs/"
:active="$route.path.startsWith('/dnsvs/')">DNSVS
</b-nav-item>
<b-nav-item v-if="$sysinfo_js_mods.includes('macauth')" to="/macauth/"
:active="$route.path.startsWith('/macauth/')">MACAuth
</b-nav-item>
<b-nav-item v-if="$sysinfo_mods_by_name['dhcp_leases']" to="/dhcp-leases/"
:active="$route.path.startsWith('/dhcp-leases/')">DHCP-Leases
</b-nav-item>
......@@ -83,4 +86,4 @@ export default {
}
}
}
</script>
\ No newline at end of file
</script>
......@@ -289,6 +289,7 @@ SystemInfoService.getAll().then((sysinfo) => {
mods_by_name[sysinfo.data.mods[i].name] = sysinfo.data.mods[i]
}
Vue.prototype.$sysinfo_mods_by_name = mods_by_name
Vue.prototype.$sysinfo_js_mods = sysinfo.data.js_mods
let v = new Vue({
router,
store,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment