Skip to content

Commit 5603583

Browse files
committed
Cleaned sidebar files
1 parent 9eb3f8d commit 5603583

12 files changed

+25
-40
lines changed

app/shared/navbar/navbar.component.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/shared/navbar/navbar.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/shared/navbar/navbar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
22
import { ROUTES } from '../.././sidebar/sidebar-routes.config';
3-
import { MenuType } from '../.././sidebar/sidebar.metadata';
43
import {Location, LocationStrategy, PathLocationStrategy} from '@angular/common';
54

65
@Component({
@@ -16,7 +15,8 @@ export class NavbarComponent implements OnInit{
1615
this.location = location;
1716
}
1817
ngOnInit(){
19-
this.listTitles = ROUTES.filter(listTitle => listTitle.menuType !== MenuType.BRAND);
18+
this.listTitles = ROUTES.filter(listTitle => listTitle);
19+
console.log(this.listTitles);
2020
}
2121
getTitle(){
2222
var titlee = this.location.prepareExternalUrl(this.location.path());

app/sidebar/sidebar-routes.config.js

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/sidebar/sidebar-routes.config.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { MenuType, RouteInfo } from './sidebar.metadata';
1+
import { RouteInfo } from './sidebar.metadata';
22

33
export const ROUTES: RouteInfo[] = [
4-
{ path: 'dashboard', title: 'Dashboard', menuType: MenuType.LEFT, icon: 'dashboard' },
5-
{ path: 'user', title: 'User profile', menuType: MenuType.LEFT, icon:'person' },
6-
{ path: 'table', title: 'Table List', menuType: MenuType.LEFT, icon:'content_paste' },
7-
{ path: 'typography', title: 'Typography', menuType: MenuType.LEFT, icon:'library_books' },
8-
{ path: 'icons', title: 'Icons', menuType: MenuType.LEFT, icon:'bubble_chart' },
9-
{ path: 'maps', title: 'Maps', menuType: MenuType.LEFT, icon:'location_on' },
10-
{ path: 'notifications', title: 'Notifications', menuType: MenuType.LEFT, icon:'notifications' },
4+
{ path: 'dashboard', title: 'Dashboard', icon: 'dashboard' },
5+
{ path: 'user', title: 'User profile', icon:'person' },
6+
{ path: 'table', title: 'Table List', icon:'content_paste' },
7+
{ path: 'typography', title: 'Typography', icon:'library_books' },
8+
{ path: 'icons', title: 'Icons', icon:'bubble_chart' },
9+
{ path: 'maps', title: 'Maps', icon:'location_on' },
10+
{ path: 'notifications', title: 'Notifications', icon:'notifications' },
1111
];

app/sidebar/sidebar.component.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/sidebar/sidebar.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/sidebar/sidebar.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
22
import { ROUTES } from './sidebar-routes.config';
3-
import { MenuType } from './sidebar.metadata';
43

54
declare var $:any;
65
@Component({
@@ -13,6 +12,6 @@ export class SidebarComponent implements OnInit {
1312
public menuItems: any[];
1413
ngOnInit() {
1514
$.getScript('../../assets/js/material-dashboard-angular.js');
16-
this.menuItems = ROUTES.filter(menuItem => menuItem.menuType !== MenuType.BRAND);
15+
this.menuItems = ROUTES.filter(menuItem => menuItem);
1716
}
1817
}

app/sidebar/sidebar.metadata.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)