Fixed permission issue with menue

This commit is contained in:
Ferdinand Thiessen 2020-11-06 01:28:35 +01:00
parent 8689e84d47
commit edf56c1094
1 changed files with 2 additions and 8 deletions

View File

@ -1,11 +1,5 @@
<template> <template>
<q-item <q-item clickable tag="a" target="self" :to="{ name: link }" v-if="isGranted">
clickable
tag="a"
target="self"
:to="{ name: link }"
v-if="hasPermissions"
>
<q-item-section v-if="icon" avatar> <q-item-section v-if="icon" avatar>
<q-icon :name="icon" /> <q-icon :name="icon" />
</q-item-section> </q-item-section>
@ -70,7 +64,7 @@ export default defineComponent({
hasPermissions(props.permissions || [], root.$store) hasPermissions(props.permissions || [], root.$store)
); );
return { realTitle: title, hasPermissions }; return { realTitle: title, isGranted };
} }
}); });
</script> </script>