diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-16 18:41:16 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-16 18:41:16 -0500 |
commit | 0a678675ee4fbc22c12844ee7738ca5e95de01da (patch) | |
tree | 6f47d8ebf4df228fb4e73f87f2287507f3b18412 /iridescence/src/components/Navbar.vue | |
parent | a71c91289f87f4c01a5e3c87b5f00a2912fd07d6 (diff) | |
download | theglassyladies-0a678675ee4fbc22c12844ee7738ca5e95de01da.tar.xz theglassyladies-0a678675ee4fbc22c12844ee7738ca5e95de01da.zip |
dug; you can do date oldest/newest sorting with dbids.
Diffstat (limited to 'iridescence/src/components/Navbar.vue')
-rw-r--r-- | iridescence/src/components/Navbar.vue | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/iridescence/src/components/Navbar.vue b/iridescence/src/components/Navbar.vue index 78627e9..60db834 100644 --- a/iridescence/src/components/Navbar.vue +++ b/iridescence/src/components/Navbar.vue @@ -41,20 +41,12 @@ > <div class="navbar-item has-dropdown is-active" - v-for="category in categories.keys()" + v-for="category in categories" :key="category" > <div class="navbar-link"> {{ category }} </div> - - <div - class="navbar-dropdown" - v-for="subcategory in categories.get(category)" - :key="subcategory" - > - {{ subcategory }} - </div> </div> <div class="navbar-item"> @@ -77,7 +69,7 @@ export default { }, data() { return { - isMenuActive: false + isMenuActive: true }; }, computed: { @@ -89,8 +81,14 @@ export default { } }, categories() { - const products = this.$store.getters.products; - console.log(products.map(item => item.categories)); + //const raw = this.$store.getters.products.map(p => p.category.split("/")); + const raw = [ + [1, 2, 3], + [1, 2, 4], + [1, 5], + [6, 7] + ]; + console.log(this.generateCategories(raw)); return []; }, routeName() { @@ -98,6 +96,12 @@ export default { } }, methods: { + generateCategories(list) { + let results = []; + console.log(list); + + return results; + }, toggleNavMenu() { this.isMenuActive = !this.isMenuActive; } |