Skip to content

Commit

Permalink
Merge pull request #39 from delta-reporter/project-enhancement
Browse files Browse the repository at this point in the history
Bug fix - project name update
  • Loading branch information
opishcheiko authored Aug 21, 2020
2 parents 0d0c0d4 + a1c4707 commit aa962ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion components/templates/ListOfSuites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export const ListOfSuites = function(props: Props) {

function changeRightSide(value, testId) {
setTestInfoSection(value)
console.log(testId)
setHighlightedTest(testId)
}

Expand Down
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function Index(props: Props) {
}

async function getNewProjectName(projectId) {
let projectName = (document.getElementById("newProjectName") as HTMLInputElement).value
let projectName = (document.getElementById("modal_" + projectId) as HTMLInputElement).value

const requestOptions = {
method: "PUT",
Expand Down Expand Up @@ -335,7 +335,7 @@ function Index(props: Props) {
<Typography style={{ marginBottom: "15px"}}> Update project name:
</Typography>
<form noValidate autoComplete="off">
<TextField id="newProjectName" label={project.name} className={state.darkMode ? classes.rootSemiLight : classes.rootLight} variant="outlined"/>
<TextField id={`modal_${project.project_id}`} label={project.name} className={state.darkMode ? classes.rootSemiLight : classes.rootLight} variant="outlined"/>
<Button variant="contained" style={{border: "1px solid grey", marginTop: "15px", marginLeft: "30px"}} onClick={() => getNewProjectName(project.project_id)}>Submit</Button>
</form>

Expand Down

0 comments on commit aa962ba

Please sign in to comment.