admin/home: added web-link for each version you can install, after check-for-updates
Massimo Melina committed
Jan 21, 2025 at 19:29 UTC
173f08f65aef72ef64187ba4f087a35e068af85b
1 file changed
+9
-6
admin/src/HomePage.ts
+9
-6
@@ -143,12 +143,15 @@ function Update({ info, title, bodyCollapsed }: { title?: ReactNode, info: Relea
143
const [collapsed, setCollapsed] = useState(bodyCollapsed)
144
return h(Flex, { alignItems: 'flex-start', flexWrap: 'wrap' },
145
h(Card, {}, h(CardContent, {},
146
- title && h(Box, { fontSize: 'larger', mb: 1 }, title),
147
- h(Btn, {
148
- icon: UpdateIcon,
149
- ...!info.isNewer && info.prerelease && { color: 'warning', variant: 'outlined' },
150
- onClick: () => update(info.tag_name)
151
- }, prefix("Install ", info.name, info.isNewer ? '' : " (older)")),
146
+ h(Flex, {},
147
+ title && h(Box, { fontSize: 'larger', mb: 1 }, title),
148
+ h(Btn, {
149
+ icon: UpdateIcon,
150
+ ...!info.isNewer && info.prerelease && { color: 'warning', variant: 'outlined' },
151
+ onClick: () => update(info.tag_name)
152
+ }, prefix("Install ", info.name, info.isNewer ? '' : " (older)")),
153
+ h(Link, { href: REPO_URL + 'releases/tag/' + info.tag_name, target: 'repo' }, h(OpenInNew)),
154
+ ),
155
collapsed ? h(LinkBtn, { sx: { display: 'block', mt: 1 }, onClick(){ setCollapsed(false) } }, "See details")
156
: h(Box, { mt: 1 }, renderChangelog(info.body))
157
)),