From 2aa36acae0c99eca77abcec06393c9756d2e6586 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Thu, 26 Nov 2020 12:40:55 +0200 Subject: [PATCH] Change some messageHandler actions setup_complete does not close the dialog but just allows marking the setup as completed. close_dialog closes the dialog immediately. --- .../views/dialogs/HostingSignupDialog.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/views/dialogs/HostingSignupDialog.tsx b/src/components/views/dialogs/HostingSignupDialog.tsx index f85955e876..3f8c57abb5 100644 --- a/src/components/views/dialogs/HostingSignupDialog.tsx +++ b/src/components/views/dialogs/HostingSignupDialog.tsx @@ -25,6 +25,7 @@ interface IProps { } interface IState { + completed: boolean, error: string, } @@ -36,6 +37,7 @@ export default class HostingSignupDialog extends React.PureComponent { - if (result) { + if (result || this.state.completed) { // We're done, close this.props.requestClose(); } else { @@ -73,7 +82,6 @@ export default class HostingSignupDialog extends React.PureComponent { if (result) { - // TODO call an API endpoint to clean up? this.props.requestClose(); } },