Skip to content

Commit

Permalink
Add icon for submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugenizer committed Apr 11, 2018
1 parent b6c0eba commit fd4e25c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/layout/sidebar/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
class="sidebar-link sidebar-submenu-link"
:to="childItem.path"
:target="childItem.meta.newWindow ? '_blank' : '_self'">
<i class="sidebar-menu-item-icon"
v-bind:class="childItem.meta.iconClass"
v-if="childItem.meta.iconClass"
></i>
{{childItem.meta.title | translate}}
</router-link>
</li>
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/menu/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
path: '/statistics/charts',
component: lazyLoading('statistics/charts/Charts'),
meta: {
iconClass: 'entypo entypo-flashlight',
title: 'menu.charts'
}
},
Expand Down

0 comments on commit fd4e25c

Please sign in to comment.