Remove nav from task show page
This commit is contained in:
parent
fe4694729c
commit
91c9d531a7
|
@ -97,9 +97,6 @@ from spiffworkflow_backend.services.user_service import UserService
|
||||||
from spiffworkflow_backend.services.workflow_execution_service import (
|
from spiffworkflow_backend.services.workflow_execution_service import (
|
||||||
execution_strategy_named,
|
execution_strategy_named,
|
||||||
)
|
)
|
||||||
from spiffworkflow_backend.services.workflow_execution_service import (
|
|
||||||
StepDetailLoggingDelegate,
|
|
||||||
)
|
|
||||||
from spiffworkflow_backend.services.workflow_execution_service import (
|
from spiffworkflow_backend.services.workflow_execution_service import (
|
||||||
TaskModelSavingDelegate,
|
TaskModelSavingDelegate,
|
||||||
)
|
)
|
||||||
|
@ -1660,7 +1657,6 @@ class ProcessInstanceProcessor:
|
||||||
execution_strategy_name: str = "greedy",
|
execution_strategy_name: str = "greedy",
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Do_engine_steps."""
|
"""Do_engine_steps."""
|
||||||
|
|
||||||
# NOTE: Commenting out to test how this changes performance:
|
# NOTE: Commenting out to test how this changes performance:
|
||||||
# def spiff_step_details_mapping_builder(
|
# def spiff_step_details_mapping_builder(
|
||||||
# task: SpiffTask, start: float, end: float
|
# task: SpiffTask, start: float, end: float
|
||||||
|
|
|
@ -23,7 +23,7 @@ import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
||||||
|
|
||||||
export default function TaskShow() {
|
export default function TaskShow() {
|
||||||
const [task, setTask] = useState<ProcessInstanceTask | null>(null);
|
const [task, setTask] = useState<ProcessInstanceTask | null>(null);
|
||||||
const [userTasks, setUserTasks] = useState(null);
|
const [userTasks] = useState(null);
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [disabled, setDisabled] = useState(false);
|
const [disabled, setDisabled] = useState(false);
|
||||||
|
@ -33,6 +33,8 @@ export default function TaskShow() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const processResult = (result: ProcessInstanceTask) => {
|
const processResult = (result: ProcessInstanceTask) => {
|
||||||
setTask(result);
|
setTask(result);
|
||||||
|
setDisabled(false);
|
||||||
|
/* Disable call to load previous tasks -- do not display menu.
|
||||||
const url = `/v1.0/process-instances/for-me/${modifyProcessIdentifierForPathParam(
|
const url = `/v1.0/process-instances/for-me/${modifyProcessIdentifierForPathParam(
|
||||||
result.process_model_identifier
|
result.process_model_identifier
|
||||||
)}/${params.process_instance_id}/task-info`;
|
)}/${params.process_instance_id}/task-info`;
|
||||||
|
@ -52,6 +54,7 @@ export default function TaskShow() {
|
||||||
addError(error);
|
addError(error);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
HttpService.makeCallToBackend({
|
HttpService.makeCallToBackend({
|
||||||
path: `/tasks/${params.process_instance_id}/${params.task_id}`,
|
path: `/tasks/${params.process_instance_id}/${params.task_id}`,
|
||||||
|
|
Loading…
Reference in New Issue