diff --git a/frontend/src/History/HistoryRow.js b/frontend/src/History/HistoryRow.js
index 43b3dba0a..1d8c38850 100644
--- a/frontend/src/History/HistoryRow.js
+++ b/frontend/src/History/HistoryRow.js
@@ -257,6 +257,7 @@ class HistoryRow extends Component {
key={parameter.key}
title={parameter.title}
value={data[parameter.key]}
+ queryType={data.queryType}
/>
);
}
diff --git a/frontend/src/History/HistoryRowParameter.tsx b/frontend/src/History/HistoryRowParameter.tsx
index 0e55c65b3..ad83d5d77 100644
--- a/frontend/src/History/HistoryRowParameter.tsx
+++ b/frontend/src/History/HistoryRowParameter.tsx
@@ -1,14 +1,16 @@
import React from 'react';
import Link from 'Components/Link/Link';
+import { HistoryQueryType } from 'typings/History';
import styles from './HistoryRowParameter.css';
interface HistoryRowParameterProps {
title: string;
value: string;
+ queryType: HistoryQueryType;
}
function HistoryRowParameter(props: HistoryRowParameterProps) {
- const { title, value } = props;
+ const { title, value, queryType } = props;
const type = title.toLowerCase();
@@ -18,7 +20,13 @@ function HistoryRowParameter(props: HistoryRowParameterProps) {
link = {value};
} else if (type === 'tmdb') {
link = (
- {value}
+
+ {value}
+
);
} else if (type === 'tvdb') {
link = (
diff --git a/frontend/src/Indexer/Info/History/IndexerHistoryRow.tsx b/frontend/src/Indexer/Info/History/IndexerHistoryRow.tsx
index d56b1a6e5..28d45654c 100644
--- a/frontend/src/Indexer/Info/History/IndexerHistoryRow.tsx
+++ b/frontend/src/Indexer/Info/History/IndexerHistoryRow.tsx
@@ -68,6 +68,7 @@ function IndexerHistoryRow(props: IndexerHistoryRowProps) {
key={parameter.key}
title={parameter.title}
value={data[parameter.key as keyof HistoryData].toString()}
+ queryType={data.queryType}
/>
);
})}
diff --git a/frontend/src/typings/History.ts b/frontend/src/typings/History.ts
index ff13c676a..3e50355dc 100644
--- a/frontend/src/typings/History.ts
+++ b/frontend/src/typings/History.ts
@@ -1,5 +1,12 @@
import ModelBase from 'App/ModelBase';
+export type HistoryQueryType =
+ | 'search'
+ | 'tvsearch'
+ | 'movie'
+ | 'book'
+ | 'music';
+
export interface HistoryData {
source: string;
host: string;
@@ -7,7 +14,7 @@ export interface HistoryData {
offset: number;
elapsedTime: number;
query: string;
- queryType: string;
+ queryType: HistoryQueryType;
}
interface History extends ModelBase {