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"
|
to="pos.warehouses.index"
|
||||||
/>
|
/>
|
||||||
<SubLink
|
<SubLink
|
||||||
|
v-if="hasPermission('clients.index')"
|
||||||
icon="accessibility"
|
icon="accessibility"
|
||||||
name="pos.clients"
|
name="pos.clients"
|
||||||
to="pos.clients.index"
|
to="pos.clients.index"
|
||||||
@ -71,11 +72,13 @@ onMounted(() => {
|
|||||||
to="pos.inventory.index"
|
to="pos.inventory.index"
|
||||||
/>
|
/>
|
||||||
<SubLink
|
<SubLink
|
||||||
|
v-if="hasPermission('suppliers.index')"
|
||||||
icon="support_agent"
|
icon="support_agent"
|
||||||
name="pos.suppliers"
|
name="pos.suppliers"
|
||||||
to="pos.suppliers.index"
|
to="pos.suppliers.index"
|
||||||
/>
|
/>
|
||||||
<SubLink
|
<SubLink
|
||||||
|
v-if="hasPermission('units')"
|
||||||
icon="scale"
|
icon="scale"
|
||||||
name="pos.unitMeasure"
|
name="pos.unitMeasure"
|
||||||
to="pos.unitMeasure.index"
|
to="pos.unitMeasure.index"
|
||||||
@ -103,6 +106,7 @@ onMounted(() => {
|
|||||||
to="pos.returns.index"
|
to="pos.returns.index"
|
||||||
/>
|
/>
|
||||||
<Link
|
<Link
|
||||||
|
v-if="hasPermission('client-tiers.index')"
|
||||||
icon="leaderboard"
|
icon="leaderboard"
|
||||||
name="pos.clientTiers"
|
name="pos.clientTiers"
|
||||||
to="pos.client-tiers.index"
|
to="pos.client-tiers.index"
|
||||||
|
|||||||
@ -129,6 +129,7 @@ const closeSuggestions = () => {
|
|||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@blur="closeSuggestions"
|
@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"
|
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">
|
<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