mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(web/releases): action status show rejections (#342)
* fix(releases): action status show rejections
This commit is contained in:
parent
402596523d
commit
652bd8f6f3
1 changed files with 2 additions and 17 deletions
|
@ -53,22 +53,6 @@ const StatusCellMap: Record<string, StatusCellMapEntry> = {
|
|||
}
|
||||
};
|
||||
|
||||
// const GetReleaseStatusString = (releaseAction: ReleaseActionStatus) => {
|
||||
// const items: Array<string> = [
|
||||
// `action: ${releaseAction.action}`,
|
||||
// `type: ${releaseAction.type}`,
|
||||
// `status: ${releaseAction.status}`,
|
||||
// `time: ${simplifyDate(releaseAction.timestamp)}`
|
||||
// ];
|
||||
// if (releaseAction.client != "")
|
||||
// items.push(`client: ${releaseAction.client}`);
|
||||
// if (releaseAction.filter != "")
|
||||
// items.push(`filter: ${releaseAction.filter}`);
|
||||
// if (releaseAction.rejections.length)
|
||||
// items.push(`rejections: ${releaseAction.rejections}`);
|
||||
// return items.join(" | ");
|
||||
// };
|
||||
|
||||
export const ReleaseStatusCell = ({ value }: ReleaseStatusCellProps) => (
|
||||
<div className="flex text-sm font-medium text-gray-900 dark:text-gray-300">
|
||||
{value.map((v, idx) => (
|
||||
|
@ -80,13 +64,14 @@ export const ReleaseStatusCell = ({ value }: ReleaseStatusCellProps) => (
|
|||
)}
|
||||
>
|
||||
<Tooltip button={StatusCellMap[v.status].icon}>
|
||||
<ol className="flex flex-col">
|
||||
<ol className="flex flex-col max-w-sm">
|
||||
<li className="py-1">Status: {v.status}</li>
|
||||
<li className="py-1">Action: {v.action}</li>
|
||||
<li className="py-1">Type: {v.type}</li>
|
||||
{v.client && <li className="py-1">Client: {v.client}</li>}
|
||||
{v.filter && <li className="py-1">Filter: {v.filter}</li>}
|
||||
<li className="py-1">Time: {simplifyDate(v.timestamp)}</li>
|
||||
{v.rejections.length > 0 && <li className="py-1">Rejections: <span className="break-all">{v.rejections.toString()}</span></li>}
|
||||
</ol>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue