Skip to content

Commit

Permalink
Merge pull request #7 from creativetimofficial/feature/v2.0.0
Browse files Browse the repository at this point in the history
Fix the sidenav items color issue
  • Loading branch information
sajadevo authored Apr 20, 2022
2 parents e6a43c4 + c3232fc commit 752ba15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
17 changes: 8 additions & 9 deletions src/examples/Sidenav/SidenavCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
class="nav-link"
:class="getRoute() === collapseRef ? `active bg-gradient-${color}` : ''"
v-bind="$attrs"
type="button"
@click="isExpanded = !isExpanded"
>
<div
Expand All @@ -32,30 +31,30 @@ export default {
props: {
collapseRef: {
type: String,
required: true,
required: true
},
navText: {
type: String,
required: true,
required: true
},
collapse: {
type: Boolean,
default: true,
},
default: true
}
},
data() {
return {
isExpanded: false,
isExpanded: false
};
},
methods: {
getRoute() {
const routeArr = this.$route.path.split("/");
return routeArr[1];
},
}
},
computed: {
...mapState(["isRTL", "color"]),
},
...mapState(["isRTL", "color"])
}
};
</script>
1 change: 0 additions & 1 deletion src/examples/Sidenav/SidenavList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
class="btn mt-4 w-100"
:class="`bg-gradient-${this.$store.state.color}`"
href="https://www.creative-tim.com/product/vue-material-dashboard-2-pro"
type="button"
>Upgrade to pro</a
>
</div>
Expand Down

0 comments on commit 752ba15

Please sign in to comment.