mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: reports pdf template
This commit is contained in:
@@ -10,7 +10,7 @@ import { useBalanceSheetContext } from '../../BalanceSheetProvider';
|
||||
|
||||
export default function BalanceSheetPdfDialogContent() {
|
||||
const { httpQuery } = useBalanceSheetContext();
|
||||
const { isLoading, pdfUrl } = useBalanceSheetPdf({ ...httpQuery });
|
||||
const { isLoading, isLoaded, pdfUrl } = useBalanceSheetPdf({ ...httpQuery });
|
||||
|
||||
return (
|
||||
<DialogContent>
|
||||
@@ -18,8 +18,10 @@ export default function BalanceSheetPdfDialogContent() {
|
||||
<AnchorButton
|
||||
href={pdfUrl}
|
||||
target={'__blank'}
|
||||
minimal={true}
|
||||
outlined={true}
|
||||
disabled={!isLoaded}
|
||||
small
|
||||
minimal
|
||||
outlined
|
||||
>
|
||||
<T id={'pdf_preview.preview.button'} />
|
||||
</AnchorButton>
|
||||
@@ -27,8 +29,11 @@ export default function BalanceSheetPdfDialogContent() {
|
||||
<AnchorButton
|
||||
href={pdfUrl}
|
||||
download={'invoice.pdf'}
|
||||
minimal={true}
|
||||
outlined={true}
|
||||
|
||||
disabled={!isLoaded}
|
||||
small
|
||||
minimal
|
||||
outlined
|
||||
>
|
||||
<T id={'pdf_preview.download.button'} />
|
||||
</AnchorButton>
|
||||
|
||||
@@ -234,22 +234,12 @@ html[lang^='ar'] {
|
||||
|
||||
.dialog__header-actions {
|
||||
position: absolute;
|
||||
right: 50px;
|
||||
right: 44px;
|
||||
top: 0;
|
||||
z-index: 9999999;
|
||||
margin: 6px;
|
||||
|
||||
.bp4-button {
|
||||
border-color: rgba(0, 0, 0, 0.25);
|
||||
color: rgb(25, 32, 37);
|
||||
min-height: 30px;
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
|
||||
&+.bp4-button {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
margin: 9px 6px 6px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.bp4-dialog {
|
||||
|
||||
Reference in New Issue
Block a user