mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 22:27:17 -04:00
Fix #1917, bring back sceneName in manual search modal
This commit is contained in:
parent
8eef455cc5
commit
d4f211f375
1 changed files with 8 additions and 1 deletions
|
@ -17,6 +17,7 @@ import {
|
|||
Anchor,
|
||||
Badge,
|
||||
Button,
|
||||
Code,
|
||||
Collapse,
|
||||
Divider,
|
||||
Group,
|
||||
|
@ -26,6 +27,7 @@ import {
|
|||
Text,
|
||||
} from "@mantine/core";
|
||||
import { useHover } from "@mantine/hooks";
|
||||
import { isString } from "lodash";
|
||||
import { FunctionComponent, useCallback, useMemo, useState } from "react";
|
||||
import { UseQueryResult } from "react-query";
|
||||
import { Column } from "react-table";
|
||||
|
@ -186,6 +188,9 @@ function ManualSearchView<T extends SupportType>(props: Props<T>) {
|
|||
[download, item]
|
||||
);
|
||||
|
||||
const bSceneNameAvailable =
|
||||
isString(item.sceneName) && item.sceneName.length !== 0;
|
||||
|
||||
return (
|
||||
<Stack>
|
||||
<Alert
|
||||
|
@ -193,7 +198,9 @@ function ManualSearchView<T extends SupportType>(props: Props<T>) {
|
|||
color="gray"
|
||||
icon={<FontAwesomeIcon icon={faInfoCircle}></FontAwesomeIcon>}
|
||||
>
|
||||
{item?.path}
|
||||
<Text size="sm">{item?.path}</Text>
|
||||
<Divider hidden={!bSceneNameAvailable} my="xs"></Divider>
|
||||
<Code hidden={!bSceneNameAvailable}>{item?.sceneName}</Code>
|
||||
</Alert>
|
||||
<Collapse in={!isStale && !results.isFetching}>
|
||||
<PageTable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue