mirror of
https://github.com/frappe/books.git
synced 2025-01-23 15:18:24 +00:00
fix: change barcode text color to white in dark mode
This commit is contained in:
parent
0eda30623c
commit
6d0300ac1a
@ -8,7 +8,10 @@
|
||||
border
|
||||
rounded
|
||||
bg-gray-50
|
||||
dark:border-gray-800 dark:bg-gray-890 dark:focus-within:bg-gray-900
|
||||
dark:text-gray-200
|
||||
dark:border-gray-800
|
||||
dark:bg-gray-890
|
||||
dark:focus-within:bg-gray-900
|
||||
focus-within:bg-gray-100
|
||||
"
|
||||
>
|
||||
@ -84,6 +87,8 @@ export default defineComponent({
|
||||
})) as { name: string }[];
|
||||
|
||||
const name = items?.[0]?.name;
|
||||
console.log(name, 'name');
|
||||
|
||||
if (!name) {
|
||||
return this.error(this.t`Item with barcode ${barcode} not found.`);
|
||||
}
|
||||
|
@ -8,7 +8,10 @@
|
||||
border
|
||||
rounded
|
||||
bg-gray-50
|
||||
dark:border-gray-800 dark:bg-gray-890 dark:focus-within:bg-gray-900
|
||||
dark:text-gray-200
|
||||
dark:border-gray-800
|
||||
dark:bg-gray-890
|
||||
dark:focus-within:bg-gray-900
|
||||
focus-within:bg-gray-100
|
||||
"
|
||||
>
|
||||
@ -84,10 +87,7 @@ export default defineComponent({
|
||||
|
||||
const filters: Record<string, string> = isWeightEnabled
|
||||
? {
|
||||
weightBarcode: barcode.slice(
|
||||
checkDigit,
|
||||
checkDigit + itemCodeDigits
|
||||
),
|
||||
barcode: barcode.slice(checkDigit, checkDigit + itemCodeDigits),
|
||||
}
|
||||
: { barcode };
|
||||
const fields = isWeightEnabled ? ['name', 'unit'] : ['name'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user