feat(clients): override arr download client by name (#1328)

* feat(clients): override arr client by name

* feat(clients): add missing file

* feat(clients): add section download client arr
This commit is contained in:
ze0s 2024-01-01 17:57:19 +01:00 committed by GitHub
parent 45b522abf8
commit fbabdfb217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 143 additions and 49 deletions

View file

@ -70,6 +70,7 @@ export function Actions({ filter, values }: FilterActionsProps) {
webhook_data: "",
webhook_headers: [],
external_download_client_id: 0,
external_download_client: "",
client_id: 0
};

View file

@ -118,16 +118,29 @@ export const Arr = ({ idx, action, clients }: ClientActionProps) => (
</FilterSection.HalfRow>
<FilterSection.HalfRow>
<Input.NumberField
name={`actions.${idx}.external_download_client_id`}
label="Override download client id for arr"
tooltip={
<p>
Override Download client Id from the one set in Clients. Useful if you
have multiple clients inside the arr.
</p>
}
/>
<div className="">
<Input.TextField
name={`actions.${idx}.external_download_client`}
label="Override download client name for arr"
tooltip={
<p>
Override Download client name from the one set in Clients. Useful if you
have multiple clients inside the arr.
</p>
}
/>
<Input.NumberField
name={`actions.${idx}.external_download_client_id`}
label="Override download client id for arr DEPRECATED"
className="mt-4"
tooltip={
<p>
Override Download client Id from the one set in Clients. Useful if you
have multiple clients inside the arr.
</p>
}
/>
</div>
</FilterSection.HalfRow>
</FilterSection.Layout>
</FilterSection.Section>