Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Mar 21, 2019
1 parent be33d9d commit 6f23032
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions packages/fractalite/src/client/components/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default {
return true;
},
handleClick(item) {

if (item.url && (!item.children || (item.children && !this.isExpanded(item)))) {
if (item.url.match(/^(http(s)?|ftp):\/\//)) {
this.toggleExpanded(item);
Expand All @@ -70,19 +69,9 @@ export default {
this.$router.push(item.url);
}
}


if (item.children) {
this.toggleExpanded(item);
}

// if (item.children) {
// Vue.nextTick(() =>{
// this.toggleExpanded(item);
// });
// }


}
},
watch: {
Expand Down
7 changes: 0 additions & 7 deletions packages/fractalite/views/vue/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
<span :class="{ 'is-collapsable': item.collapsable, 'fr-nav__toggle': item.children, 'fr-nav__link': item.url && !item.children, 'is-active': item.url === $route.path }" @click.stop="handleClick(item)">
<span class="fr-nav__label" v-html="item.label"></span>
</span>

<!-- <app-link :to="item.url" v-if="item.url" class="fr-nav__link" :class="{ 'is-collapsable': item.collapsable }" @click="toggleExpanded(item)">
<span class="fr-nav__label" v-html="item.label"></span>
</app-link>
<span class="fr-nav__toggle" :class="{ 'is-collapsable': item.collapsable }" @click.stop="toggleExpanded(item)" v-else>
<span class="fr-nav__label" v-html="item.label"></span>
</span> -->
<navigation :items="item.children" :depth="depth + 1" v-if="item.children"></navigation>
</li>
</ul>

0 comments on commit 6f23032

Please sign in to comment.