.
This commit is contained in:
parent
b6cb56daff
commit
957a92aad9
@ -117,10 +117,11 @@ export function CatalogDataTableFilter<TData>({
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant='outline'
|
||||
variant='default'
|
||||
size='icon'
|
||||
disabled={!inputValue}
|
||||
onClick={addFilterTerm}
|
||||
className='w-8 h-8 p-0 hover:bg-muted'
|
||||
className='w-8 h-8 p-0 transition-all'
|
||||
>
|
||||
<PlusIcon className='w-4 h-4' />
|
||||
<span className='sr-only'>{t("common.filter.button_add_term")}</span>
|
||||
|
||||
@ -72,17 +72,14 @@ export const QuoteItemsSortableDataTableToolbar = ({ table }: { table: Table<any
|
||||
<div className='flex space-x-2'>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<AppendEmptyRowButton
|
||||
variant='ghost'
|
||||
onClick={() => table.options.meta?.appendItem()}
|
||||
/>
|
||||
<AppendEmptyRowButton variant='link' onClick={() => table.options.meta?.appendItem()} />
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>{t("common.append_empty_row_tooltip")}</TooltipContent>
|
||||
</Tooltip>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<AppendCatalogArticleRowButton
|
||||
variant='ghost'
|
||||
variant='link'
|
||||
onClick={() => {
|
||||
if (table.options.meta && table.options.meta.pickCatalogArticle) {
|
||||
table.options.meta?.pickCatalogArticle();
|
||||
@ -95,7 +92,7 @@ export const QuoteItemsSortableDataTableToolbar = ({ table }: { table: Table<any
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<AppendBlockRowButton
|
||||
variant='ghost'
|
||||
variant='link'
|
||||
onClick={() => {
|
||||
if (table.options.meta && table.options.meta.pickBlock) {
|
||||
table.options.meta?.pickBlock();
|
||||
|
||||
@ -100,32 +100,32 @@ export const QuoteEdit = () => {
|
||||
id_article: "",
|
||||
description: "",
|
||||
quantity: {
|
||||
amount: undefined,
|
||||
amount: null,
|
||||
scale: 2,
|
||||
},
|
||||
unit_price: {
|
||||
amount: undefined,
|
||||
amount: null,
|
||||
scale: 2,
|
||||
currency_code: "",
|
||||
currency_code: quoteCurrency.code,
|
||||
},
|
||||
subtotal_price: {
|
||||
amount: undefined,
|
||||
amount: null,
|
||||
scale: 2,
|
||||
currency_code: "",
|
||||
currency_code: quoteCurrency.code,
|
||||
},
|
||||
discount: {
|
||||
amount: undefined,
|
||||
amount: null,
|
||||
scale: 2,
|
||||
},
|
||||
total_price: {
|
||||
amount: undefined,
|
||||
amount: null,
|
||||
scale: 2,
|
||||
currency_code: "",
|
||||
currency_code: quoteCurrency.code,
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
[]
|
||||
[quoteCurrency.code]
|
||||
);
|
||||
|
||||
const { useOne, useUpdate } = useQuotes();
|
||||
|
||||
@ -3,10 +3,10 @@ import { PlusIcon } from "lucide-react";
|
||||
|
||||
export const SimpleEmptyState = ({
|
||||
title = "Esto está muy vacío",
|
||||
subtitle = "Empieza dando de alta un item",
|
||||
buttonText = "Nuevo item",
|
||||
subtitle = "Empieza solicitando la carga del catálogo",
|
||||
buttonText = "Solicitar carga del catálogo",
|
||||
onButtonClick = () => {},
|
||||
actions = undefined,
|
||||
actions = () => <></>,
|
||||
}) => {
|
||||
return (
|
||||
<div className='text-center'>
|
||||
|
||||
315
dist/client/assets/index-BLcuj4sR.js
vendored
Normal file
315
dist/client/assets/index-BLcuj4sR.js
vendored
Normal file
File diff suppressed because one or more lines are too long
323
dist/client/assets/index-C4qjCyTZ.js
vendored
Normal file
323
dist/client/assets/index-C4qjCyTZ.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/client/assets/index-CRnRspMf.css
vendored
1
dist/client/assets/index-CRnRspMf.css
vendored
File diff suppressed because one or more lines are too long
636
dist/client/assets/index-Dma5RbLy.js
vendored
636
dist/client/assets/index-Dma5RbLy.js
vendored
File diff suppressed because one or more lines are too long
1
dist/client/assets/index-DtTssDoC.css
vendored
Normal file
1
dist/client/assets/index-DtTssDoC.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/client/assets/index-enIG-PHa.css
vendored
Normal file
1
dist/client/assets/index-enIG-PHa.css
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/client/index.html
vendored
2
dist/client/index.html
vendored
@ -1 +1 @@
|
||||
<!doctype html><html><head><meta charset="UTF-8"/><meta name="robots" content="noindex, nofollow"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link href="https://fonts.upset.dev/css2?family=Poppins&display=swap" rel="stylesheet"/><title>Presupuestador Uecko</title><script type="module" crossorigin src="/assets/index-Dma5RbLy.js"></script><link rel="stylesheet" crossorigin href="/assets/index-CRnRspMf.css"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="uecko"></div></body></html>
|
||||
<!doctype html><html><head><meta charset="UTF-8"/><meta name="robots" content="noindex, nofollow"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link href="https://fonts.upset.dev/css2?family=Poppins&display=swap" rel="stylesheet"/><title>Presupuestador Uecko</title><script type="module" crossorigin src="/assets/index-C4qjCyTZ.js"></script><link rel="stylesheet" crossorigin href="/assets/index-enIG-PHa.css"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="uecko"></div></body></html>
|
||||
Loading…
Reference in New Issue
Block a user