Commit bd1d060
committed
frontend: fix route after passphrase device settings changed
After enabling the passphrase option (watch-only enabled) the app
says "Please replug the BitBox02 now", but the app just keeps
showing that view.
Without watch-only the unlock device view shows as expected.
Reason was that the /passphrase route was not under /settings and
had some special condition which including testing accounts. But
with watch-only there might be always accounts, so this failed.
Moved the /passphrase router under /settings/device-settings, so
that it is covered by another condition in app.tsx routing logic.
With this there is no need to check for /passphrase directly, as
it is now under /settings.
Alternative would have been to explicitly test for /passphrase.1 parent a72f693 commit bd1d060
File tree
3 files changed
+2
-3
lines changed- frontends/web/src
- routes
- settings/components/device-settings
3 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments