aboutsummaryrefslogtreecommitdiffstats
path: root/webui
diff options
context:
space:
mode:
authorCláudio <claudio.engdist@gmail.com>2021-02-02 19:29:02 -0300
committerCláudio <claudio.engdist@gmail.com>2021-02-02 19:29:02 -0300
commit52ada2dba15012f0b5868d4eacf922efbf4a19c8 (patch)
tree8e0b3a3033646f6e8c4aad237fdbe4b93ad057b7 /webui
parente4ce918ac77a5fceab2e5ca4efabef77f2f0650d (diff)
downloadgit-bug-52ada2dba15012f0b5868d4eacf922efbf4a19c8.tar.gz
fix #544
- Fixing code review requests
Diffstat (limited to 'webui')
-rw-r--r--webui/src/components/BugTitleForm/BugTitleForm.tsx10
-rw-r--r--webui/src/components/BugTitleForm/SetTitle.graphql2
2 files changed, 6 insertions, 6 deletions
diff --git a/webui/src/components/BugTitleForm/BugTitleForm.tsx b/webui/src/components/BugTitleForm/BugTitleForm.tsx
index 22be9eba..16441c93 100644
--- a/webui/src/components/BugTitleForm/BugTitleForm.tsx
+++ b/webui/src/components/BugTitleForm/BugTitleForm.tsx
@@ -76,7 +76,7 @@ interface Props {
* @param bug Selected bug in list page
*/
function BugTitleForm({ bug }: Props) {
- const [bugTitleEditable, setBugTitleEditable] = useState(false);
+ const [bugTitleEdition, setbugTitleEdition] = useState(false);
const [setTitle, { loading, error }] = useSetTitleMutation();
const [issueTitle, setIssueTitle] = useState(bug.title);
const classes = useStyles();
@@ -110,12 +110,12 @@ function BugTitleForm({ bug }: Props) {
},
],
awaitRefetchQueries: true,
- }).then(() => setBugTitleEditable(false));
+ }).then(() => setbugTitleEdition(false));
}
function cancelChange() {
setIssueTitle(bug.title);
- setBugTitleEditable(false);
+ setbugTitleEdition(false);
}
function editableBugTitle() {
@@ -160,7 +160,7 @@ function BugTitleForm({ bug }: Props) {
<Button
size="small"
variant="contained"
- onClick={() => setBugTitleEditable(!bugTitleEditable)}
+ onClick={() => setbugTitleEdition(!bugTitleEdition)}
>
Edit
</Button>
@@ -182,7 +182,7 @@ function BugTitleForm({ bug }: Props) {
return (
<div className={classes.header}>
- {bugTitleEditable ? editableBugTitle() : readonlyBugTitle()}
+ {bugTitleEdition ? editableBugTitle() : readonlyBugTitle()}
<div className="classes.headerSubtitle">
<Typography color={'textSecondary'}>
<Author author={bug.author} />
diff --git a/webui/src/components/BugTitleForm/SetTitle.graphql b/webui/src/components/BugTitleForm/SetTitle.graphql
index 4bc4656c..b96af155 100644
--- a/webui/src/components/BugTitleForm/SetTitle.graphql
+++ b/webui/src/components/BugTitleForm/SetTitle.graphql
@@ -1,7 +1,7 @@
mutation setTitle($input: SetTitleInput!) {
setTitle(input: $input) {
bug {
- humanId
+ id
}
}
} \ No newline at end of file