Add NZBGet download client

This commit is contained in:
Jon Terry
2022-11-06 10:05:35 -06:00
parent 5077d753b6
commit 92c09207f6
30 changed files with 559 additions and 112 deletions

View File

@@ -407,6 +407,42 @@ export function AddAppShelfItemForm(props: AddAppShelfItemFormProps) {
/>
</>
)}
{form.values.type === 'NZBGet' && (
<>
<TextInput
label={t('modal.tabs.options.form.integrations.nzbget.username.label')}
placeholder={t(
'modal.tabs.options.form.integrations.nzbget.username.placeholder'
)}
value={form.values.username}
onChange={(event) => {
form.setFieldValue('username', event.currentTarget.value);
}}
error={
form.errors.username &&
t(
'modal.tabs.options.form.integrations.nzbget.username.validation.invalidUsername'
)
}
/>
<PasswordInput
label={t('modal.tabs.options.form.integrations.nzbget.password.label')}
placeholder={t(
'modal.tabs.options.form.integrations.nzbget.password.placeholder'
)}
value={form.values.password}
onChange={(event) => {
form.setFieldValue('password', event.currentTarget.value);
}}
error={
form.errors.password &&
t(
'modal.tabs.options.form.integrations.nzbget.password.validation.invalidPassword'
)
}
/>
</>
)}
</Stack>
</Tabs.Panel>
<Tabs.Panel value="Advanced Options">