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 { 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'
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user