-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite request loop if metadata request fails (#3948)
Fixes #3812. Previously, the UI would retry the metadata request indefinitely and without a delay. Now, if the metadata request fails, an error message and a button to reload the page are displayed. I haven’t implemented automatic retries with back-offs for now, as this adds complexity and I’m not sure it’s necessary.
- Loading branch information
1 parent
fd7935b
commit 19adc88
Showing
2 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
@import 'app/variables.scss'; | ||
|
||
.RouterLoading { | ||
.Router { | ||
height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.Router__error, | ||
.Router__spinner { | ||
align-self: center; | ||
margin: auto; | ||
} | ||
|
||
.spinner { | ||
align-self: center; | ||
margin: auto; | ||
} | ||
.Router__error { | ||
max-width: $aleph-screen-sm-max-width; | ||
padding: $aleph-content-padding; | ||
text-align: center; | ||
} |