ux: add link to doc for LAN command checkbox

This commit is contained in:
bsourisse 2023-06-11 20:16:17 +02:00
parent 2074f90c66
commit e21a0ac896
2 changed files with 463 additions and 448 deletions

View file

@ -9,7 +9,6 @@ export default function QuickCommands(props) {
//Needed to generate command for borg over LAN instead of WAN if env vars are set and option enabled.
let HOSTNAME;
let SSH_SERVER_PORT;
console.log(props.lanCommand);
if (
props.lanCommand &&
process.env.NEXT_PUBLIC_HOSTNAME_LAN &&

View file

@ -8,6 +8,8 @@ import 'react-toastify/dist/ReactToastify.css';
import { useForm, Controller } from 'react-hook-form';
import { SpinnerDotted } from 'spinners-react';
import Select from 'react-select';
import Link from 'next/link';
import { IconExternalLink } from '@tabler/icons';
export default function RepoManage(props) {
////Var
@ -380,6 +382,20 @@ export default function RepoManage(props) {
<label htmlFor='lanCommand'>
Generates commands for use over LAN.
</label>
<Link
style={{
alignSelf: 'baseline',
marginLeft: '5px',
}}
href='https://borgwarehouse.com/docs/user-manual/repositories/#generates-commands-for-use-over-lan'
rel='noreferrer'
target='_blank'
>
<IconExternalLink
size={16}
color='#6c737f'
/>
</Link>
</div>
{/* ALERT */}
<label