From e17353ed5716c9f87c7720fa407c91035c12c772 Mon Sep 17 00:00:00 2001 From: Jason Sylvestre Date: Thu, 5 Sep 2019 13:44:44 -0700 Subject: [PATCH] Hack to show a message if the submit fails --- src/CaesHelp/ClientApp/components/Ticket.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/CaesHelp/ClientApp/components/Ticket.tsx b/src/CaesHelp/ClientApp/components/Ticket.tsx index 6a810a4..0acb400 100644 --- a/src/CaesHelp/ClientApp/components/Ticket.tsx +++ b/src/CaesHelp/ClientApp/components/Ticket.tsx @@ -304,7 +304,7 @@ export default class Ticket extends React.Component } return (
-
+
{this.state.supportDepartment === "Computer Support" &&
@@ -363,11 +363,11 @@ export default class Ticket extends React.Component }
- +
-
+
this.handleFileUpload(acceptedFiles)}> {({ getRootProps, getInputProps }) => ( @@ -397,7 +397,7 @@ export default class Ticket extends React.Component
- +
@@ -406,8 +406,15 @@ export default class Ticket extends React.Component {this.state.showErrors && !this.state.validState && }
- - {this.state.submitting &&
Submitting... Please wait. If you have uploaded an attachment, this may take a minute.
} + + { + this.state.submitting && +
+ Submitting... Please wait. If you have uploaded an attachment, this may take a minute. +
If this gets stuck here, consider emailing directly: Info
+ +
+ }
);