From ed2a7c5ee688e6b2338275167b9959374f320000 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 23 Feb 2024 08:58:32 -0300 Subject: [PATCH] Add fill to lock icon --- src/pages/Entry/Card/EntryBuys.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/Entry/Card/EntryBuys.vue b/src/pages/Entry/Card/EntryBuys.vue index a65e7e1c9..a96edb1db 100644 --- a/src/pages/Entry/Card/EntryBuys.vue +++ b/src/pages/Entry/Card/EntryBuys.vue @@ -285,7 +285,7 @@ const toggleGroupingMode = async (buy, mode) => { } }; -const showLockIcon = (groupingMode, mode) => { +const lockIconType = (groupingMode, mode) => { if (mode === 'packing') { return groupingMode === 2 ? 'lock' : 'lock_open'; } else { @@ -363,7 +363,7 @@ const showLockIcon = (groupingMode, mode) => { > { dense unelevated push + :style="{ + 'font-variation-settings': `'FILL' ${ + lockIconType( + props.row.groupingMode, + col.name + ) === 'lock' + ? 1 + : 0 + }`, + }" />