aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/CloseBugButton
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-05-25 14:07:27 +0200
committerSascha <GlancingMind@outlook.com>2021-05-25 14:14:57 +0200
commit098bcd0c1f26d0896e7ede3edb4040b01bc3126a (patch)
treec651ca503969df4c2146cb12c705c2c5c7bef661 /webui/src/components/CloseBugButton
parent3d4385483e1a2e43814e4b3d83221f1a3477cb88 (diff)
downloadgit-bug-098bcd0c1f26d0896e7ede3edb4040b01bc3126a.tar.gz
WebUI: Add comment-and-close of a bug in one step
When a user has some text entered in the comment field, the close bug button will change to "Close bug with comment". This way the user does not have to comment and close a bug in two separate steps.
Diffstat (limited to 'webui/src/components/CloseBugButton')
-rw-r--r--webui/src/components/CloseBugButton/CloseBugButton.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui/src/components/CloseBugButton/CloseBugButton.tsx b/webui/src/components/CloseBugButton/CloseBugButton.tsx
index 9f098483..5ec78bb2 100644
--- a/webui/src/components/CloseBugButton/CloseBugButton.tsx
+++ b/webui/src/components/CloseBugButton/CloseBugButton.tsx
@@ -18,7 +18,7 @@ const useStyles = makeStyles((theme: Theme) => ({
interface Props {
bug: BugFragment;
- disabled: boolean;
+ disabled?: boolean;
}
function CloseBugButton({ bug, disabled }: Props) {