mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-11 01:06:36 +00:00
add breadcrumb to instances page sometimes
This commit is contained in:
parent
d12a6b7025
commit
4726a7fa23
@ -41,6 +41,7 @@ import 'react-bootstrap-typeahead/css/Typeahead.css';
|
|||||||
import 'react-bootstrap-typeahead/css/Typeahead.bs5.css';
|
import 'react-bootstrap-typeahead/css/Typeahead.bs5.css';
|
||||||
import { PaginationObject, ProcessModel } from '../interfaces';
|
import { PaginationObject, ProcessModel } from '../interfaces';
|
||||||
import ProcessModelSearch from '../components/ProcessModelSearch';
|
import ProcessModelSearch from '../components/ProcessModelSearch';
|
||||||
|
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
||||||
|
|
||||||
export default function ProcessInstanceList() {
|
export default function ProcessInstanceList() {
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
@ -471,26 +472,31 @@ export default function ProcessInstanceList() {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const processInstanceTitleElement = () => {
|
const processInstanceBreadcrumbElement = () => {
|
||||||
const processModelFullIdentifier =
|
const processModelFullIdentifier =
|
||||||
getProcessModelFullIdentifierFromSearchParams(searchParams);
|
getProcessModelFullIdentifierFromSearchParams(searchParams);
|
||||||
if (processModelFullIdentifier === null) {
|
if (processModelFullIdentifier === null) {
|
||||||
return <h2>Process Instances</h2>;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<h2>
|
<ProcessBreadcrumb
|
||||||
Process Instances for:{' '}
|
hotCrumbs={[
|
||||||
<Link
|
['Process Groups', '/admin'],
|
||||||
to={`/admin/process-models/${modifyProcessModelPath(
|
[
|
||||||
processModelFullIdentifier
|
`Process Model: ${processModelFullIdentifier}`,
|
||||||
)}`}
|
`process_model:${processModelFullIdentifier}:link`,
|
||||||
>
|
],
|
||||||
{processModelFullIdentifier}
|
['Process Instances'],
|
||||||
</Link>
|
]}
|
||||||
</h2>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const processInstanceTitleElement = () => {
|
||||||
|
return <h2>Process Instances</h2>;
|
||||||
|
};
|
||||||
|
|
||||||
const toggleShowFilterOptions = () => {
|
const toggleShowFilterOptions = () => {
|
||||||
setShowFilterOptions(!showFilterOptions);
|
setShowFilterOptions(!showFilterOptions);
|
||||||
};
|
};
|
||||||
@ -499,6 +505,7 @@ export default function ProcessInstanceList() {
|
|||||||
const { page, perPage } = getPageInfoFromSearchParams(searchParams);
|
const { page, perPage } = getPageInfoFromSearchParams(searchParams);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{processInstanceBreadcrumbElement()}
|
||||||
{processInstanceTitleElement()}
|
{processInstanceTitleElement()}
|
||||||
<Grid fullWidth>
|
<Grid fullWidth>
|
||||||
<Column
|
<Column
|
||||||
|
Loading…
x
Reference in New Issue
Block a user