1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 01:42:35 +01:00

Render with ternary in bulk manage

Closes #10360
This commit is contained in:
Bogdan 2024-08-26 04:01:30 +03:00
parent 58f544e9e0
commit 93298645e3
4 changed files with 8 additions and 8 deletions

View File

@ -160,9 +160,9 @@ function ManageCustomFormatsModalContent(
{error ? <div>{errorMessage}</div> : null} {error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && ( {isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoCustomFormatsFound')}</Alert> <Alert kind={kinds.INFO}>{translate('NoCustomFormatsFound')}</Alert>
)} ) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? ( {isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table <Table

View File

@ -220,9 +220,9 @@ function ManageDownloadClientsModalContent(
{error ? <div>{errorMessage}</div> : null} {error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && ( {isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoDownloadClientsFound')}</Alert> <Alert kind={kinds.INFO}>{translate('NoDownloadClientsFound')}</Alert>
)} ) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? ( {isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table <Table

View File

@ -210,9 +210,9 @@ function ManageImportListsModalContent(
{error ? <div>{errorMessage}</div> : null} {error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && ( {isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoImportListsFound')}</Alert> <Alert kind={kinds.INFO}>{translate('NoImportListsFound')}</Alert>
)} ) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? ( {isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table <Table

View File

@ -215,9 +215,9 @@ function ManageIndexersModalContent(props: ManageIndexersModalContentProps) {
{error ? <div>{errorMessage}</div> : null} {error ? <div>{errorMessage}</div> : null}
{isPopulated && !error && !items.length && ( {isPopulated && !error && !items.length ? (
<Alert kind={kinds.INFO}>{translate('NoIndexersFound')}</Alert> <Alert kind={kinds.INFO}>{translate('NoIndexersFound')}</Alert>
)} ) : null}
{isPopulated && !!items.length && !isFetching && !isFetching ? ( {isPopulated && !!items.length && !isFetching && !isFetching ? (
<Table <Table