This commit is contained in:
Douglas Barone 2022-04-07 13:18:11 -04:00
parent 7396a3605e
commit 76df632987
2 changed files with 10 additions and 10 deletions

View File

@ -18,9 +18,9 @@
</v-list-item-title>
</template>
<v-list-item
class="ml-4"
v-for="(item, itemIndex) in group.items"
:key="itemIndex"
class="ml-4"
:to="item.route"
:disabled="item.disabled"
:exact="'exact' in item ? item.exact : true"
@ -38,8 +38,8 @@
<template v-else>
<v-list-item
v-for="(item, itemIndex) in group.items"
color="primary"
:key="itemIndex"
color="primary"
:to="item.route"
:disabled="item.disabled"
:exact="'exact' in item ? item.exact : true"
@ -61,13 +61,6 @@ import Nav from '@/mixins/Nav'
export default {
name: 'NavList',
mixins: [Nav],
methods: {
shouldShowGroup({ items }) {
return items.some(item =>
this.$route.matched.some(route => route.name === item.route.name)
)
}
},
props: {
mini: {
type: Boolean,
@ -77,6 +70,13 @@ export default {
type: Boolean,
default: false
}
},
methods: {
shouldShowGroup({ items }) {
return items.some(item =>
this.$route.matched.some(route => route.name === item.route.name)
)
}
}
}
</script>

View File

@ -37,8 +37,8 @@
<v-expand-transition>
<v-text-field
v-show="!show"
autocomplete="off"
v-model="passwordConfirmation"
autocomplete="off"
:rules="[
() =>
newPassword === passwordConfirmation || 'As senhas não coincidem.'