Permitir modificar presupuestos aceptados y no enviados

This commit is contained in:
David Arranz 2024-11-12 10:53:42 +01:00
parent efc7557506
commit 6503b9da9f
2 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,8 @@ import { useCallback, useMemo } from "react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { useQuotes } from "../hooks"; import { useQuotes } from "../hooks";
import { DownloadQuoteDialog } from "./DownloadQuoteDialog"; import { DownloadQuoteDialog } from "./DownloadQuoteDialog";
import { QuoteSentToEditor, QuoteStatusEditor } from "./editors";
import { QuotePDFPreview } from "./QuotePDFPreview"; import { QuotePDFPreview } from "./QuotePDFPreview";
import { QuoteSentToEditor, QuoteStatusEditor } from "./editors";
type QuoteResumeProps = { type QuoteResumeProps = {
quoteId?: string; quoteId?: string;
@ -154,7 +154,7 @@ export const QuoteResume = ({ quoteId, className }: QuoteResumeProps) => {
</> </>
)} )}
{!allowToSent && !isSent && ( {!isSent && (
<> <>
<Button <Button
size='sm' size='sm'

View File

@ -99,7 +99,7 @@ export const QuotesDataTable = ({
<Button <Button
size='sm' size='sm'
variant='link' variant='link'
disabled={allowToSent || isSent} disabled={isSent}
className='h-8 gap-1 px-0 text-left text-ellipsis' className='h-8 gap-1 px-0 text-left text-ellipsis'
onClick={(e) => { onClick={(e) => {
e.preventDefault(); e.preventDefault();
@ -230,7 +230,7 @@ export const QuotesDataTable = ({
</Button> </Button>
)} )}
{!allowToSent && !isSent && ( {!isSent && (
<Button <Button
size='sm' size='sm'
variant='outline' variant='outline'