From 605ae092818e834fb70b38f5e1db1aa7fb488f9d Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Thu, 18 Aug 2022 00:54:12 +0200 Subject: bug and style fix --- src/client/util/ReportManager.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/client/util/ReportManager.tsx b/src/client/util/ReportManager.tsx index 75102ec8e..223c7ff7d 100644 --- a/src/client/util/ReportManager.tsx +++ b/src/client/util/ReportManager.tsx @@ -75,8 +75,10 @@ export class ReportManager extends React.Component<{}> { (this.isOpen = true) }); - private bugTitle = ''; - private bugDescription = ''; + @observable private bugTitle = ''; + @action setBugTitle = action((title: string) => { this.bugTitle = title; }); + @observable private bugDescription = ''; + @action setBugDescription = action((description: string) => { this.bugDescription = description; }); // private toGithub = false; // will always be set to true - no alterntive option yet @@ -123,8 +125,8 @@ export class ReportManager extends React.Component<{}> { } // if we're down here, then we're good to go. - this.bugTitle = ''; - this.bugDescription = ''; + this.setBugTitle(''); + this.setBugDescription(''); this.toGithub = false; this.setFileLinks([]) this.close(); @@ -172,7 +174,7 @@ export class ReportManager extends React.Component<{}> { this.uploadFiles(e.target)}/>
- + ) : // view issue -- cgit v1.2.3-70-g09d2