feat: agregar control de permisos en enlaces de navegación y búsqueda de productos
This commit is contained in:
parent
581ce37449
commit
a743ea73e7
@ -54,6 +54,7 @@ onMounted(() => {
|
||||
to="pos.warehouses.index"
|
||||
/>
|
||||
<SubLink
|
||||
v-if="hasPermission('clients.index')"
|
||||
icon="accessibility"
|
||||
name="pos.clients"
|
||||
to="pos.clients.index"
|
||||
@ -71,11 +72,13 @@ onMounted(() => {
|
||||
to="pos.inventory.index"
|
||||
/>
|
||||
<SubLink
|
||||
v-if="hasPermission('suppliers.index')"
|
||||
icon="support_agent"
|
||||
name="pos.suppliers"
|
||||
to="pos.suppliers.index"
|
||||
/>
|
||||
<SubLink
|
||||
v-if="hasPermission('units')"
|
||||
icon="scale"
|
||||
name="pos.unitMeasure"
|
||||
to="pos.unitMeasure.index"
|
||||
@ -103,6 +106,7 @@ onMounted(() => {
|
||||
to="pos.returns.index"
|
||||
/>
|
||||
<Link
|
||||
v-if="hasPermission('client-tiers.index')"
|
||||
icon="leaderboard"
|
||||
name="pos.clientTiers"
|
||||
to="pos.client-tiers.index"
|
||||
|
||||
@ -129,6 +129,7 @@ const closeSuggestions = () => {
|
||||
:placeholder="placeholder"
|
||||
:disabled="disabled"
|
||||
@blur="closeSuggestions"
|
||||
@keydown.enter.prevent="searchProduct"
|
||||
class="w-full px-3 py-2 pr-10 text-sm border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 dark:bg-gray-800 dark:text-gray-100 disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
/>
|
||||
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user