1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Show loading errors as Alerts (#5736)

New: Improved page loading errors
This commit is contained in:
Bogdan
2023-06-16 20:49:08 +03:00
committed by GitHub
parent 059a156f4a
commit 1f785dd30d
21 changed files with 67 additions and 38 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Alert from 'Components/Alert';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ConfirmModal from 'Components/Modal/ConfirmModal';
import PageContent from 'Components/Page/PageContent';
@@ -155,14 +156,14 @@ class Blocklist extends Component {
{
!isFetching && !!error &&
<div>Unable to load blocklist</div>
<Alert kind={kinds.DANGER}>Unable to load blocklist</Alert>
}
{
isPopulated && !error && !items.length &&
<div>
<Alert kind={kinds.INFO}>
No history blocklist
</div>
</Alert>
}
{