admin/custom: added help link
Massimo Melina committed
Apr 9, 2023 at 20:31 UTC
ec3a60326f6ed7e97f76607cf709edc188c718a8
1 file changed
+4
-1
admin/src/CustomHtmlPage.ts
+4
-1
@@ -10,6 +10,7 @@ import { Save } from '@mui/icons-material'
10
import _ from 'lodash'
11
import { useDebounce } from 'usehooks-ts'
12
import md from './md'
13
+import { REPO_URL } from './HomePage'
14
15
export default function CustomHtmlPage() {
16
const { data, reload } = useApiEx<{ sections: Dict<string> }>('get_custom_html')
@@ -27,7 +28,9 @@ export default function CustomHtmlPage() {
28
const anyChange = useMemo(() => !_.isEqualWith(saved, all, (a,b) => !a && !b || undefined),
29
[saved, all])
30
return h(Fragment, {},
30
- h(Alert, { severity: 'info' }, md("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice."), h(Link, { href: "https://github.com/rejetto/hfs/wiki/customization" })),
31
+ h(Alert, { severity: 'info' },
32
+ md("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice. "),
33
+ h(Link, { href: REPO_URL + "wiki/customization", target: 'help' }, "More help")),
34
h(Box, { display: 'flex', alignItems: 'center', gap: 1, mb: 1 },
35
h(SelectField as Field<string>, { label: "Section", value: sec, options, onChange: setSec }),
36
reloadBtn(reload),