Skip to content

Commit

Permalink
Merge pull request #279 from itenium-be/fix-comments
Browse files Browse the repository at this point in the history
fix NotesModalButton
  • Loading branch information
Laoujin authored Jul 3, 2024
2 parents 2466afc + 6441bef commit c06f760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const NotesModalButton = ({claim, value, onChange, title, variant, disabl

const icon = !value ? 'far fa-comment' : 'far fa-comment-dots';
const showConfirm = !disabled && (!claim || (claim && authService.getClaims().includes(claim)));

return (
<>
<Button
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/invoice/invoice-edit/EditInvoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ const EditInvoice = () => {
</div>
<div>
<div className={`invoice-top-buttonbar ${storeInvoice?._id ? 'invoice-edit' : 'invoice-new'}`}>
<NotesModalButton
{invoice.note && <NotesModalButton
claim={invoice.isQuotation ? Claim.ManageQuotations : Claim.ManageInvoices}
value={invoice.note}
onChange={val => updateInvoice('note', val)}
title={t('projectMonth.note')}
variant="link"
/>
/>}
{initInvoice._id && <DownloadInvoiceButton invoice={initInvoice} />}
{storeInvoice?._id && !storeInvoice?.isQuotation && <InvoiceDownloadIcon invoice={invoice} fileType='xml' style={{color: '#0062cc', marginLeft: 20}} />}
</div>
Expand Down

0 comments on commit c06f760

Please sign in to comment.