diff --git a/SAS/TMSS/frontend/tmss_webapp/.env b/SAS/TMSS/frontend/tmss_webapp/.env index 5ae84cf5c36b07064cbceba88dce60e58721d3b5..ac6fa02c423051e7dab91414fed70a824e57b979 100644 --- a/SAS/TMSS/frontend/tmss_webapp/.env +++ b/SAS/TMSS/frontend/tmss_webapp/.env @@ -1,2 +1,2 @@ REACT_APP_WEBSOCKET_URL=ws://localhost:5678/ -REACT_APP_EDITABLE_CONTRAINTS=defined,scheduled,schedulable,unschedulable \ No newline at end of file +REACT_APP_CONSTRAINT_EDITABLE_STATUS=defined,scheduled,schedulable,unschedulable \ No newline at end of file diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js index 1bb149b9ad5540e7ac9af14c2363d47b9de7a11e..78325cef8d810801823fdfb7ba64224a9b630f16 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/summary.js @@ -166,7 +166,6 @@ 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}); @@ -252,7 +251,7 @@ export class SchedulingUnitSummary extends Component { <> <div className="col-12 constraints-summary" style={{ top:"0px",position:"relative",}}> <label>Constraints:</label> - {permissions.edit && (_.includes(_.split(process.env.REACT_APP_EDITABLE_CONTRAINTS, ',' ), schedulingUnit.status)) ? + {permissions.edit && (_.includes(_.split(process.env.REACT_APP_CONSTRAINT_EDITABLE_STATUS, ',' ), 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)}>