New: VIP Expiration column on indexer index

Fixes #456
Fixes #797
This commit is contained in:
Qstick
2023-02-26 19:56:56 -06:00
parent 02ad2379a5
commit 0e82899958
9 changed files with 60 additions and 5 deletions
@@ -54,6 +54,9 @@ function IndexerIndexRow(props: IndexerIndexRowProps) {
fields.find((field) => field.name === 'baseUrl')?.value ??
(Array.isArray(indexerUrls) ? indexerUrls[0] : undefined);
const vipExpiration =
fields.find((field) => field.name === 'vipExpiration')?.value ?? '';
const rssUrl = `${window.location.origin}${window.Prowlarr.urlBase}/${id}/api?t=search&extended=1&apikey=${window.Prowlarr.apiKey}`;
const [isEditIndexerModalOpen, setIsEditIndexerModalOpen] = useState(false);
@@ -187,6 +190,17 @@ function IndexerIndexRow(props: IndexerIndexRowProps) {
);
}
if (name === 'vipExpiration') {
return (
<RelativeDateCellConnector
key={name}
className={styles[name]}
date={vipExpiration}
component={VirtualTableRowCell}
/>
);
}
if (name === 'tags') {
return (
<VirtualTableRowCell key={name} className={styles[name]}>