mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-03-04 02:50:38 +00:00
hide the view call activity link if the call activity is in a future state w/ burnettk (#1972)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
ecfca2144c
commit
b4e9dfff27
@ -735,9 +735,7 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
|
||||
const initializeTaskDataToDisplay = (task: Task | null) => {
|
||||
if (
|
||||
task &&
|
||||
(task.state === 'COMPLETED' ||
|
||||
task.state === 'ERROR' ||
|
||||
task.state === 'READY') &&
|
||||
['COMPLETED', 'ERROR', 'READY'].includes(task.state) &&
|
||||
ability.can('GET', targetUris.processInstanceTaskDataPath)
|
||||
) {
|
||||
setShowTaskDataLoading(true);
|
||||
@ -1127,7 +1125,10 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
|
||||
);
|
||||
}
|
||||
|
||||
if (task.typename === 'CallActivity') {
|
||||
if (
|
||||
task.typename === 'CallActivity' &&
|
||||
!['FUTURE', 'LIKELY', 'MAYBE'].includes(task.state)
|
||||
) {
|
||||
const taskDefinitionPropertiesJson: TaskDefinitionPropertiesJson =
|
||||
task.task_definition_properties_json;
|
||||
buttons.push(
|
||||
|
Loading…
x
Reference in New Issue
Block a user