Skip to content

Commit f3c1759

Browse files
committed
changelog will tab will always be visible when on changelog page
1 parent 0c441b2 commit f3c1759

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/components/Package/Header.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ const diffLink = computed((): RouteLocationRaw | null => {
130130
const { data: changelog } = usePackageChangelog(packageName, requestedVersion)
131131
132132
const changelogLink = computed((): RouteLocationRaw | null => {
133-
if (!changelog.value || props.pkg == null || props.resolvedVersion == null) {
133+
if (
134+
// either changelog.value is available or current page is the changelog
135+
!(changelog.value || props.page == 'changes') ||
136+
props.pkg == null ||
137+
props.resolvedVersion == null
138+
) {
134139
return null
135140
}
136141
return changelogRoute(props.pkg.name, props.resolvedVersion)

0 commit comments

Comments
 (0)