1
0
Fork 0

Handle context API call fail error

This commit is contained in:
Lim Chee Aun 2023-01-01 12:02:06 +08:00
parent 4e80e9e0cb
commit 842db90f9c
2 changed files with 22 additions and 0 deletions

View file

@ -339,6 +339,10 @@ a.mention span {
text-align: center;
color: var(--text-insignificant-color);
}
.status-error {
text-align: center;
color: var(--text-insignificant-color);
}
.status-link {
display: block;

View file

@ -415,6 +415,24 @@ function StatusPage({ id }) {
<Loader />
</div>
)}
{uiState === 'error' &&
isHero &&
!!heroStatus?.repliesCount &&
!hasDescendants && (
<div class="status-error">
Unable to load replies.
<br />
<button
type="button"
class="plain"
onClick={() => {
states.reloadStatusPage++;
}}
>
Try again
</button>
</div>
)}
</li>
);
})}