Skip to content
Snippets Groups Projects
Commit d4efefd9 authored by Nithya's avatar Nithya
Browse files
Project column removed from the SU List in the project view.
parent ffbf801c
No related branches found
No related tags found
2 merge requests!263Resolve TMSS-309,!260syncing cob-master with master again
......@@ -187,7 +187,7 @@ export class ProjectView extends Component {
</div>
</div>
</div>
<SchedulingUnitList project={this.state.project.name}/>
<SchedulingUnitList project={this.state.project.name} hideProjectColumn/>
</div>
</React.Fragment>
}
......
......@@ -10,37 +10,41 @@ class SchedulingUnitList extends Component{
constructor(props){
super(props)
const defaultcolumns = {
type:{
name:"Type",
filter:"select"
},
name:"Name",
description:"Description",
project:"Project",
created_at:{
name:"Created At",
filter: "date"
},
updated_at:{
name:"Updated At",
filter: "date"
},
requirements_template_id:{
name: "Template",
filter: "select"
},
start_time:"Start Time",
stop_time:"End time",
duration:"Duration (HH:mm:ss)",
status:"Status"
};
if (props.hideProjectColumn) {
delete defaultcolumns['project'];
}
this.state = {
scheduleunit: [],
paths: [{
"View": "/schedulingunit/view",
}],
isLoading: true,
defaultcolumns: [ {
type:{
name:"Type",
filter:"select"
},
name:"Name",
description:"Description",
project:"Project",
created_at:{
name:"Created At",
filter: "date"
},
updated_at:{
name:"Updated At",
filter: "date"
},
requirements_template_id:{
name: "Template",
filter: "select"
},
start_time:"Start Time",
stop_time:"End time",
duration:"Duration (HH:mm:ss)",
status:"Status"
}],
defaultcolumns: [defaultcolumns],
optionalcolumns: [{
actionpath:"actionpath",
}],
......
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