Skip to content

Commit

Permalink
feat(breadcrumbs): disabled crumb option
Browse files Browse the repository at this point in the history
  • Loading branch information
smartapant committed Apr 16, 2018
1 parent b0ed984 commit 77f4ede
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<div class='vuestic-breadcrumbs'>
<router-link :to="'/'" class="crumb">{{'breadcrumbs.home' | translate}}</router-link>
<router-link
v-for="(item, index) in breadcrumbs"
:to="{path: item.path}"
:key="index"
class="crumb"
v-bind:class="{ disabled: !item.path }"
v-for="(item, index) in breadcrumbs"
:to="{name: item.name}"
:key="index"
class="crumb"
v-bind:class="{ disabled: !item.path || item.meta.breadcrumbDisabled }"
>
{{item.meta.title | translate}}
</router-link>
Expand Down

0 comments on commit 77f4ede

Please sign in to comment.