diff options
author | 2021-12-11 19:28:13 +0100 | |
---|---|---|
committer | 2021-12-11 19:28:13 +0100 | |
commit | 05dc08611b9b106f22c9d21327027096e525d300 (patch) | |
tree | b5321b7b1cf1e044c62e5aa485353f1bc570353c /src | |
parent | Update submodules, browserslist data updates and linter fixes [skip ci] (diff) | |
download | ferdium-app-05dc08611b9b106f22c9d21327027096e525d300.tar.gz ferdium-app-05dc08611b9b106f22c9d21327027096e525d300.tar.zst ferdium-app-05dc08611b9b106f22c9d21327027096e525d300.zip |
Add missing redirect in SetupAssistantScreen, fixes #2039
Diffstat (limited to 'src')
-rw-r--r-- | src/containers/auth/SetupAssistantScreen.js | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/containers/auth/SetupAssistantScreen.js b/src/containers/auth/SetupAssistantScreen.js index f6392712d..42c3d6019 100644 --- a/src/containers/auth/SetupAssistantScreen.js +++ b/src/containers/auth/SetupAssistantScreen.js | |||
@@ -4,10 +4,6 @@ import PropTypes from 'prop-types'; | |||
4 | import { inject, observer } from 'mobx-react'; | 4 | import { inject, observer } from 'mobx-react'; |
5 | 5 | ||
6 | import { RouterStore } from 'mobx-react-router'; | 6 | import { RouterStore } from 'mobx-react-router'; |
7 | import { | ||
8 | DEFAULT_TODO_RECIPE_ID, | ||
9 | DEFAULT_TODO_SERVICE_NAME, | ||
10 | } from '../../config'; | ||
11 | import { sleep } from '../../helpers/async-helpers'; | 7 | import { sleep } from '../../helpers/async-helpers'; |
12 | import SetupAssistant from '../../components/auth/SetupAssistant'; | 8 | import SetupAssistant from '../../components/auth/SetupAssistant'; |
13 | import ServicesStore from '../../stores/ServicesStore'; | 9 | import ServicesStore from '../../stores/ServicesStore'; |
@@ -63,9 +59,7 @@ class SetupAssistantScreen extends Component { | |||
63 | }; | 59 | }; |
64 | 60 | ||
65 | async setupServices(serviceConfig) { | 61 | async setupServices(serviceConfig) { |
66 | const { | 62 | const { stores: { services, router } } = this.props; |
67 | stores: { services }, | ||
68 | } = this.props; | ||
69 | 63 | ||
70 | this.setState({ | 64 | this.setState({ |
71 | isSettingUpServices: true, | 65 | isSettingUpServices: true, |
@@ -91,19 +85,13 @@ class SetupAssistantScreen extends Component { | |||
91 | await sleep(100); | 85 | await sleep(100); |
92 | } | 86 | } |
93 | 87 | ||
94 | // Add todo service | ||
95 | await services._createService({ | ||
96 | recipeId: DEFAULT_TODO_RECIPE_ID, | ||
97 | serviceData: { | ||
98 | name: DEFAULT_TODO_SERVICE_NAME, | ||
99 | }, | ||
100 | redirect: false, | ||
101 | skipCleanup: true, | ||
102 | }); | ||
103 | |||
104 | this.setState({ | 88 | this.setState({ |
105 | isSettingUpServices: false, | 89 | isSettingUpServices: false, |
106 | }); | 90 | }); |
91 | |||
92 | await sleep(100); | ||
93 | |||
94 | router.push("/"); | ||
107 | } | 95 | } |
108 | 96 | ||
109 | render() { | 97 | render() { |