added link to process model tile w/ burnettk cullerton
This commit is contained in:
parent
3ff9f670ae
commit
fca7323ef1
|
@ -33,9 +33,11 @@ export default function ProcessModelListTiles({
|
|||
setProcessModels(result.results);
|
||||
};
|
||||
// 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) {
|
||||
queryParams = `${queryParams}&process_group_identifier=${processGroup.id}`;
|
||||
} else {
|
||||
queryParams = `${queryParams}&recursive=true`;
|
||||
}
|
||||
HttpService.makeCallToBackend({
|
||||
path: `/process-models${queryParams}`,
|
||||
|
@ -73,12 +75,17 @@ export default function ProcessModelListTiles({
|
|||
<Tile
|
||||
id={`process-model-tile-${row.id}`}
|
||||
className="tile-process-group"
|
||||
href={`/admin/process-models/${modifyProcessIdentifierForPathParam(
|
||||
row.id
|
||||
)}`}
|
||||
>
|
||||
<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">
|
||||
{truncateString(row.description || '', 100)}
|
||||
</p>
|
||||
|
|
|
@ -248,3 +248,7 @@ in on this with the react-jsonschema-form repo. This is just a patch fix to allo
|
|||
position: absolute;
|
||||
bottom: 1em;
|
||||
}
|
||||
|
||||
.cds--tabs .cds--tabs__nav-link {
|
||||
max-width: 20rem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue