Skip to content
Snippets Groups Projects
Commit e198d256 authored by Nithya Santhanam's avatar Nithya Santhanam
Browse files

TMSS-1537: Enabled edit for scheduled status in SU summary in timeline and week view

parent 61464981
No related branches found
No related tags found
1 merge request!750Resolves TMSS-803 and TMSS-1537
REACT_APP_WEBSOCKET_URL=ws://localhost:5678/
\ No newline at end of file
REACT_APP_WEBSOCKET_URL=ws://localhost:5678/
REACT_APP_EDITABLE_CONTRAINTS=defined,scheduled,schedulable,unschedulable
\ No newline at end of file
......@@ -166,6 +166,7 @@ export class SchedulingUnitSummary extends Component {
const promises = [
AuthUtil.getUserRolePermission()
];
console.log(process.env.REACT_APP_EDITABLE_CONTRAINTS)
this.updateConstraintTemplate();
await Promise.all(promises).then(responses => {
this.setState({userrole: responses[0],editCheck:1});
......@@ -244,7 +245,7 @@ export class SchedulingUnitSummary extends Component {
<>
<div className="col-12 constraints-summary" style={{ top:"0px",position:"relative",}}>
<label>Constraints:</label>
{permissions.edit && (_.includes(["defined", "schedulable", "unschedulable"], schedulingUnit.status)) ?
{permissions.edit && (_.includes(_.split(process.env.REACT_APP_EDITABLE_CONTRAINTS, ',' ), schedulingUnit.status)) ?
<i class="fa fa-pencil-alt" style={{ marginLeft:"5px",position:"absolute",top:"-3px",cursor:"pointer"}}
title = {'Edit Scheduling Constraint'}
onClick={()=> this.props.onCloseFn(true)}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment