mirror of
https://github.com/frappe/books.git
synced 2025-01-23 23:28: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
|
border
|
||||||
rounded
|
rounded
|
||||||
bg-gray-50
|
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
|
focus-within:bg-gray-100
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@ -84,6 +87,8 @@ export default defineComponent({
|
|||||||
})) as { name: string }[];
|
})) as { name: string }[];
|
||||||
|
|
||||||
const name = items?.[0]?.name;
|
const name = items?.[0]?.name;
|
||||||
|
console.log(name, 'name');
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
return this.error(this.t`Item with barcode ${barcode} not found.`);
|
return this.error(this.t`Item with barcode ${barcode} not found.`);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,10 @@
|
|||||||
border
|
border
|
||||||
rounded
|
rounded
|
||||||
bg-gray-50
|
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
|
focus-within:bg-gray-100
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@ -84,10 +87,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const filters: Record<string, string> = isWeightEnabled
|
const filters: Record<string, string> = isWeightEnabled
|
||||||
? {
|
? {
|
||||||
weightBarcode: barcode.slice(
|
barcode: barcode.slice(checkDigit, checkDigit + itemCodeDigits),
|
||||||
checkDigit,
|
|
||||||
checkDigit + itemCodeDigits
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
: { barcode };
|
: { barcode };
|
||||||
const fields = isWeightEnabled ? ['name', 'unit'] : ['name'];
|
const fields = isWeightEnabled ? ['name', 'unit'] : ['name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user