some styling changes and a better end page.
This commit is contained in:
parent
d94ee2cbf5
commit
015754e089
|
@ -430,11 +430,10 @@ def _interstitial_stream(process_instance: ProcessInstanceModel) -> Generator[st
|
||||||
|
|
||||||
task = ProcessInstanceService.spiff_task_to_api_task(processor, processor.next_task())
|
task = ProcessInstanceService.spiff_task_to_api_task(processor, processor.next_task())
|
||||||
if task.id not in reported_ids:
|
if task.id not in reported_ids:
|
||||||
|
task_model = TaskModel.query.filter_by(guid=str(task.id)).first()
|
||||||
|
extensions = TaskService.get_extensions_from_task_model(task_model)
|
||||||
|
task.properties = extensions
|
||||||
yield f"data: {current_app.json.dumps(task)} \n\n"
|
yield f"data: {current_app.json.dumps(task)} \n\n"
|
||||||
# Note, this has to be done in case someone leaves the page,
|
|
||||||
# which can otherwise cancel this function and leave completed tasks un-registered.
|
|
||||||
spiff_task = processor.next_task()
|
|
||||||
task_model = TaskModel.query.filter_by(guid=str(spiff_task.id)).first()
|
|
||||||
|
|
||||||
|
|
||||||
def get_ready_engine_step_count(bpmn_process_instance: BpmnWorkflow) -> int:
|
def get_ready_engine_step_count(bpmn_process_instance: BpmnWorkflow) -> int:
|
||||||
|
|
|
@ -435,17 +435,17 @@ svg.notification-icon {
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_1 {
|
.user_instructions_1 {
|
||||||
filter: opacity(90%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.user_instructions_2 {
|
|
||||||
filter: opacity(70%);
|
filter: opacity(70%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_3 {
|
.user_instructions_2 {
|
||||||
filter: opacity(50%);
|
filter: opacity(50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.user_instructions_4 {
|
.user_instructions_3 {
|
||||||
filter: opacity(30%);
|
filter: opacity(30%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user_instructions_4 {
|
||||||
|
filter: opacity(10%);
|
||||||
|
}
|
||||||
|
|
|
@ -103,16 +103,16 @@ export default function ProcessInterstitial() {
|
||||||
const getReturnHomeButton = (index: number) => {
|
const getReturnHomeButton = (index: number) => {
|
||||||
if (
|
if (
|
||||||
index === 0 &&
|
index === 0 &&
|
||||||
['WAITING', 'ERROR', 'LOCKED', 'COMPLETED'].includes(getStatus())
|
['WAITING', 'ERROR', 'LOCKED', 'COMPLETED', 'READY'].includes(getStatus())
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<>
|
<div style={{ padding: '10px 0 30px 0' }}>
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<Button kind="secondary" onClick={() => navigate(`/tasks`)}>
|
<Button kind="secondary" onClick={() => navigate(`/tasks`)}>
|
||||||
Return to Home
|
Return to Home
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
<hr/>
|
||||||
|
</div>
|
||||||
|
|
||||||
);
|
);
|
||||||
return '';
|
return '';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue