mmiklavc commented on a change in pull request #1464: METRON-2179: Make
navigation in both UIs consistent
URL: https://github.com/apache/metron/pull/1464#discussion_r305019632
##########
File path: metron-interface/metron-alerts/src/app/app.component.ts
##########
@@ -27,6 +27,40 @@ import { environment } from 'environments/environment';
export class AppComponent implements OnInit {
loggedIn = false;
noTransition = false;
+ isCollapsed = false;
+ hostname = window.location.hostname;
+ centralNavLinks = [
+ {
+ linkName: 'Alerts',
+ iconClass: 'warning',
+ subLinks: [
+ {
+ linkName: 'Overview',
+ routerLink: '/alerts-list'
+ },
+ {
+ linkName: 'PCAP',
+ routerLink: '/pcap'
+ }
+ ]
+ },
+ {
+ linkName: 'Management',
+ iconClass: 'tool',
+ subLinks: [
+ {
+ linkName: 'Sensors',
+ routerLink: ':4200/sensors',
+ externalLink: true
+ },
+ {
+ linkName: 'General Settings',
+ routerLink: ':4200/general-settings',
Review comment:
Is this the right place to hardcode a port number?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services