Fixed permission issue with menue
This commit is contained in:
		
							parent
							
								
									8689e84d47
								
							
						
					
					
						commit
						edf56c1094
					
				| 
						 | 
				
			
			@ -1,11 +1,5 @@
 | 
			
		|||
<template>
 | 
			
		||||
  <q-item
 | 
			
		||||
    clickable
 | 
			
		||||
    tag="a"
 | 
			
		||||
    target="self"
 | 
			
		||||
    :to="{ name: link }"
 | 
			
		||||
    v-if="hasPermissions"
 | 
			
		||||
  >
 | 
			
		||||
  <q-item clickable tag="a" target="self" :to="{ name: link }" v-if="isGranted">
 | 
			
		||||
    <q-item-section v-if="icon" avatar>
 | 
			
		||||
      <q-icon :name="icon" />
 | 
			
		||||
    </q-item-section>
 | 
			
		||||
| 
						 | 
				
			
			@ -70,7 +64,7 @@ export default defineComponent({
 | 
			
		|||
      hasPermissions(props.permissions || [], root.$store)
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    return { realTitle: title, hasPermissions };
 | 
			
		||||
    return { realTitle: title, isGranted };
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue