Wizard: Enable unavailable message for repositories
Repositories will be unavailable for the next few days.
This commit is contained in:
parent
531369276c
commit
48da0a79ec
1 changed files with 5 additions and 3 deletions
|
|
@ -243,6 +243,7 @@ const Repositories = (props) => {
|
|||
}
|
||||
);
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { data, isError, isFetching, isLoading, isSuccess, refetch } =
|
||||
useMemo(() => {
|
||||
if (firstRequest?.data?.meta?.count > 100) {
|
||||
|
|
@ -355,7 +356,8 @@ const Repositories = (props) => {
|
|||
};
|
||||
|
||||
return (
|
||||
(isError && <Error />) ||
|
||||
// Temporarily disable repositories step while service is down
|
||||
(true && <Error />) ||
|
||||
(isLoading && <Loading />) ||
|
||||
(isSuccess && (
|
||||
<>
|
||||
|
|
@ -523,8 +525,8 @@ const Repositories = (props) => {
|
|||
|
||||
const Error = () => {
|
||||
return (
|
||||
<Alert title="Repositories unavailable" variant="danger" isPlain isInline>
|
||||
Repositories cannot be reached, try again later.
|
||||
<Alert title="Repositories unavailable" variant="warning" isPlain isInline>
|
||||
The Content service cannot be reached, please check back later.
|
||||
</Alert>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue