mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
[PUI] Report print timeout (#7899)
* Enable printing actions for part * Increase default timeout for printing
This commit is contained in:
parent
e91d741785
commit
09c4710107
@ -92,7 +92,7 @@ export function PrintingActions({
|
|||||||
url: apiUrl(ApiEndpoints.label_print),
|
url: apiUrl(ApiEndpoints.label_print),
|
||||||
title: t`Print Label`,
|
title: t`Print Label`,
|
||||||
fields: labelFields,
|
fields: labelFields,
|
||||||
timeout: (items.length + 1) * 1000,
|
timeout: (items.length + 1) * 5000,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
setPluginKey('');
|
setPluginKey('');
|
||||||
},
|
},
|
||||||
@ -121,7 +121,7 @@ export function PrintingActions({
|
|||||||
const reportModal = useCreateApiFormModal({
|
const reportModal = useCreateApiFormModal({
|
||||||
title: t`Print Report`,
|
title: t`Print Report`,
|
||||||
url: apiUrl(ApiEndpoints.report_print),
|
url: apiUrl(ApiEndpoints.report_print),
|
||||||
timeout: (items.length + 1) * 1000,
|
timeout: (items.length + 1) * 5000,
|
||||||
fields: {
|
fields: {
|
||||||
template: {
|
template: {
|
||||||
filters: {
|
filters: {
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
IconListNumbers,
|
IconListNumbers,
|
||||||
IconNotes,
|
IconNotes,
|
||||||
IconPaperclip,
|
IconPaperclip,
|
||||||
IconQrcode,
|
|
||||||
IconReportAnalytics,
|
IconReportAnalytics,
|
||||||
IconSitemap
|
IconSitemap
|
||||||
} from '@tabler/icons-react';
|
} from '@tabler/icons-react';
|
||||||
|
@ -38,6 +38,7 @@ import Select from 'react-select';
|
|||||||
|
|
||||||
import { api } from '../../App';
|
import { api } from '../../App';
|
||||||
import AdminButton from '../../components/buttons/AdminButton';
|
import AdminButton from '../../components/buttons/AdminButton';
|
||||||
|
import { PrintingActions } from '../../components/buttons/PrintingActions';
|
||||||
import { DetailsField, DetailsTable } from '../../components/details/Details';
|
import { DetailsField, DetailsTable } from '../../components/details/Details';
|
||||||
import DetailsBadge from '../../components/details/DetailsBadge';
|
import DetailsBadge from '../../components/details/DetailsBadge';
|
||||||
import { DetailsImage } from '../../components/details/DetailsImage';
|
import { DetailsImage } from '../../components/details/DetailsImage';
|
||||||
@ -980,6 +981,12 @@ export default function PartDetail() {
|
|||||||
]}
|
]}
|
||||||
key="action_dropdown"
|
key="action_dropdown"
|
||||||
/>,
|
/>,
|
||||||
|
<PrintingActions
|
||||||
|
modelType={ModelType.part}
|
||||||
|
items={[part.pk]}
|
||||||
|
enableReports
|
||||||
|
enableLabels
|
||||||
|
/>,
|
||||||
<ActionDropdown
|
<ActionDropdown
|
||||||
tooltip={t`Stock Actions`}
|
tooltip={t`Stock Actions`}
|
||||||
icon={<IconPackages />}
|
icon={<IconPackages />}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user