mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Handle context API call fail error
This commit is contained in:
parent
4e80e9e0cb
commit
842db90f9c
2 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
})}
|
||||
|
|
Loading…
Add table
Reference in a new issue