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 { useQuotes } from "../hooks";
import { DownloadQuoteDialog } from "./DownloadQuoteDialog";
import { QuoteSentToEditor, QuoteStatusEditor } from "./editors";
import { QuotePDFPreview } from "./QuotePDFPreview";
import { QuoteSentToEditor, QuoteStatusEditor } from "./editors";
type QuoteResumeProps = {
quoteId?: string;
@ -154,7 +154,7 @@ export const QuoteResume = ({ quoteId, className }: QuoteResumeProps) => {
</>
)}
{!allowToSent && !isSent && (
{!isSent && (
<>
<Button
size='sm'

View File

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