diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/ReportManager.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
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<{}> { <input type="file" name="file" multiple accept='audio/*, video/*' onChange={e => this.uploadFiles(e.target)}/> </div> <br /> - <button onClick={() => this.reportIssue()} disabled={this.fileLinks === null}>{this.fileLinks === null ? 'Uploading...' : 'Submit'}</button> + <button onClick={() => this.reportIssue()} disabled={this.fileLinks === null} style={{ backgroundColor: this.fileLinks === null ? 'grey' : 'inherit'}}>{this.fileLinks === null ? 'Uploading...' : 'Submit'}</button> </div>) : // view issue |