Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
this.actions.handleAddProject();
}
viewProject = (un, index) => {
- this.actions.viewProject(un, index);
+ this.actions.viewProject(un, index, true);
}
editProject = () => {
this.actions.editProject(false);
projectRoles
});
}
- viewProject(data) {
+ viewProject() {
+ let data = arguments[0];
let project = data[0];
let projectIndex = data[1];
+ let isReadOnly = data[2];
let ProjectData = {
'name': project['name'],
activeIndex: projectIndex,
projectOpen: true,
isEdit: true,
- isReadOnly: true
+ isReadOnly: isReadOnly
}, ProjectData);
this.setState(state)
}
- editProject(isEdit) {
- this.setState({
- isReadOnly: isEdit
- })
+ editProject(isReadOnly) {
+ this.viewProject([this.projects[this.activeIndex], this.activeIndex, isReadOnly]);
+ // this.setState({
+ // isReadOnly: isEdit
+ // })
}
handleCloseProjectPanel() {
this.setState({