Permitir modificar presupuestos aceptados y no enviados
This commit is contained in:
parent
efc7557506
commit
6503b9da9f
@ -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'
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user