mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
@@ -26,6 +26,7 @@ import { useEffect, useState } from 'react';
|
|||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import { useConfig } from '../../tools/state';
|
import { useConfig } from '../../tools/state';
|
||||||
import { tryMatchPort, ServiceTypeList, StatusCodes, Config } from '../../tools/types';
|
import { tryMatchPort, ServiceTypeList, StatusCodes, Config } from '../../tools/types';
|
||||||
|
import apiKeyPaths from './apiKeyPaths.json';
|
||||||
import Tip from '../layout/Tip';
|
import Tip from '../layout/Tip';
|
||||||
|
|
||||||
export function AddItemShelfButton(props: any) {
|
export function AddItemShelfButton(props: any) {
|
||||||
@@ -307,7 +308,7 @@ export function AddAppShelfItemForm(props: AddAppShelfItemFormProps) {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
weight="bold"
|
weight="bold"
|
||||||
style={{ fontStyle: 'inherit', fontSize: 'inherit' }}
|
style={{ fontStyle: 'inherit', fontSize: 'inherit' }}
|
||||||
href={`${hostname}/settings/general`}
|
href={`${hostname}/${apiKeyPaths[form.values.type as keyof typeof apiKeyPaths]}`}
|
||||||
>
|
>
|
||||||
{t('modal.tabs.options.form.integrations.apiKey.tip.link')}
|
{t('modal.tabs.options.form.integrations.apiKey.tip.link')}
|
||||||
</Anchor>
|
</Anchor>
|
||||||
|
|||||||
9
src/components/AppShelf/apiKeyPaths.json
Normal file
9
src/components/AppShelf/apiKeyPaths.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"Jellyseerr": "settings",
|
||||||
|
"Overseerr": "settings",
|
||||||
|
"Sonarr": "settings/general",
|
||||||
|
"Radarr": "settings/general",
|
||||||
|
"Readarr": "settings/general",
|
||||||
|
"Lidarr": "settings/general",
|
||||||
|
"Sabnzbd": "sabnzbd/config/general"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user