From 6f230322863dc3e693b853c82ac7d5280912a45c Mon Sep 17 00:00:00 2001 From: Mark Perkins Date: Thu, 21 Mar 2019 09:53:40 +0100 Subject: [PATCH] Cleanup --- .../fractalite/src/client/components/navigation.js | 11 ----------- packages/fractalite/views/vue/navigation.html | 7 ------- 2 files changed, 18 deletions(-) diff --git a/packages/fractalite/src/client/components/navigation.js b/packages/fractalite/src/client/components/navigation.js index aa2e8c9..52a4c28 100644 --- a/packages/fractalite/src/client/components/navigation.js +++ b/packages/fractalite/src/client/components/navigation.js @@ -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); @@ -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: { diff --git a/packages/fractalite/views/vue/navigation.html b/packages/fractalite/views/vue/navigation.html index 58528c9..6c3438f 100644 --- a/packages/fractalite/views/vue/navigation.html +++ b/packages/fractalite/views/vue/navigation.html @@ -8,13 +8,6 @@ - -