mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-13 09:56:35 +00:00
added link to process model tile w/ burnettk cullerton
This commit is contained in:
parent
148964b55d
commit
99f5e1f5b6
@ -33,9 +33,11 @@ export default function ProcessModelListTiles({
|
|||||||
setProcessModels(result.results);
|
setProcessModels(result.results);
|
||||||
};
|
};
|
||||||
// only allow 10 for now until we get the backend only returning certain models for user execution
|
// only allow 10 for now until we get the backend only returning certain models for user execution
|
||||||
let queryParams = '?per_page=100';
|
let queryParams = '?per_page=1000';
|
||||||
if (processGroup) {
|
if (processGroup) {
|
||||||
queryParams = `${queryParams}&process_group_identifier=${processGroup.id}`;
|
queryParams = `${queryParams}&process_group_identifier=${processGroup.id}`;
|
||||||
|
} else {
|
||||||
|
queryParams = `${queryParams}&recursive=true`;
|
||||||
}
|
}
|
||||||
HttpService.makeCallToBackend({
|
HttpService.makeCallToBackend({
|
||||||
path: `/process-models${queryParams}`,
|
path: `/process-models${queryParams}`,
|
||||||
@ -73,12 +75,17 @@ export default function ProcessModelListTiles({
|
|||||||
<Tile
|
<Tile
|
||||||
id={`process-model-tile-${row.id}`}
|
id={`process-model-tile-${row.id}`}
|
||||||
className="tile-process-group"
|
className="tile-process-group"
|
||||||
href={`/admin/process-models/${modifyProcessIdentifierForPathParam(
|
|
||||||
row.id
|
|
||||||
)}`}
|
|
||||||
>
|
>
|
||||||
<div className="tile-process-group-content-container">
|
<div className="tile-process-group-content-container">
|
||||||
<div className="tile-title-top">{row.display_name}</div>
|
<div className="tile-title-top">
|
||||||
|
<a
|
||||||
|
href={`/admin/process-models/${modifyProcessIdentifierForPathParam(
|
||||||
|
row.id
|
||||||
|
)}`}
|
||||||
|
>
|
||||||
|
{row.display_name}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<p className="tile-description">
|
<p className="tile-description">
|
||||||
{truncateString(row.description || '', 100)}
|
{truncateString(row.description || '', 100)}
|
||||||
</p>
|
</p>
|
||||||
|
@ -248,3 +248,7 @@ in on this with the react-jsonschema-form repo. This is just a patch fix to allo
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 1em;
|
bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cds--tabs .cds--tabs__nav-link {
|
||||||
|
max-width: 20rem;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user