mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-11 18:14:20 +00:00
Feature/fix_action_column (#357)
* removing action column. * adding the action column back in, and making it work.
This commit is contained in:
parent
484b93887e
commit
18ea7510c6
@ -206,7 +206,8 @@ export default function ProcessInstanceListTable({
|
||||
|
||||
const [showAdvancedOptions, setShowAdvancedOptions] =
|
||||
useState<boolean>(false);
|
||||
const [withOldestOpenTask, setWithOldestOpenTask] = useState<boolean>(false);
|
||||
const [withOldestOpenTask, setWithOldestOpenTask] =
|
||||
useState<boolean>(showActionsColumn);
|
||||
const [systemReport, setSystemReport] = useState<string | null>(null);
|
||||
const [selectedUserGroup, setSelectedUserGroup] = useState<string | null>(
|
||||
null
|
||||
@ -436,6 +437,14 @@ export default function ProcessInstanceListTable({
|
||||
});
|
||||
}
|
||||
|
||||
// If the showActionColumn is set to true, we need to include the with_oldest_open_task in the query params
|
||||
if (showActionsColumn) {
|
||||
reportMetadataBodyToUse.filter_by.push({
|
||||
field_name: 'with_oldest_open_task',
|
||||
field_value: true,
|
||||
});
|
||||
}
|
||||
|
||||
if (filtersEnabled) {
|
||||
HttpService.makeCallToBackend({
|
||||
path: `/user-groups/for-current-user`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user