Skip to content
Snippets Groups Projects
Commit ab034d44 authored by Ramesh Kumar's avatar Ramesh Kumar
Browse files

TMSS-1537: Updated constant property name

parent 92215e96
No related branches found
No related tags found
1 merge request!750Resolves TMSS-803 and TMSS-1537
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
......@@ -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)}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment