make sure we show the go button on the pi show page for tasks that the user can complete w/ burnettk

This commit is contained in:
jasquat 2023-09-08 11:07:25 -04:00
parent 161a0bceb6
commit d99054b3a6
2 changed files with 6 additions and 2 deletions

View File

@ -277,8 +277,11 @@ export default function TaskListTable({
if (showActionsColumn) { if (showActionsColumn) {
const actions = []; const actions = [];
if ( if (
processInstanceTask.process_instance_status in !(
['suspended', 'completed', 'error'] processInstanceTask.process_instance_status in
['suspended', 'completed', 'error']
) &&
!processInstanceTask.completed
) { ) {
actions.push( actions.push(
<Button <Button

View File

@ -128,6 +128,7 @@ export interface ProcessInstanceTask {
// these are actually from HumanTaskModel on the backend // these are actually from HumanTaskModel on the backend
task_title?: string; task_title?: string;
task_name?: string; task_name?: string;
completed?: boolean;
} }
export interface ProcessReference { export interface ProcessReference {