Skip to content

Commit

Permalink
feat(ReleaseNotes): add release notes link for app versions in Update…
Browse files Browse the repository at this point in the history
…AppModal and SoftwareCenterAppInstances
  • Loading branch information
stephdl committed Jan 30, 2025
1 parent 49e6f9a commit 77fd716
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"terms_and_conditions": "Terms and Conditions",
"terms_required": "Please read and agree to @:common.terms_and_conditions",
"not_available": "Not available",
"release_notes": "Release notes"
"release_notes": "Release notes",
"release_notes_of_version": "Release notes of version {app}"
},
"error": {
"error": "Error",
Expand Down
10 changes: 10 additions & 0 deletions core/ui/src/components/software-center/UpdateAppModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
}
)
}}
<template v-if="app.docs.relnotes_url">
<span>
<cv-link
:href="app.docs.relnotes_url + '/tag/' + appVersion"
target="_blank"
>
{{ $t("common.release_notes_of_version", { app: appVersion }) }}
</cv-link>
</span>
</template>
</div>
<div v-if="error.updateModule">
<NsInlineNotification
Expand Down
11 changes: 11 additions & 0 deletions core/ui/src/views/SoftwareCenterAppInstances.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@
})
}}
</div>
<template v-if="app.docs.relnotes_url">
<span>
<cv-link
class="row icon-and-text"
:href="app.docs.relnotes_url"
target="_blank"
>
{{ $t("common.release_notes") }}
</cv-link>
</span>
</template>
<div class="row actions">
<!-- app is installed and can be updated -->
<template v-if="isStableUpdateAvailable(app, instance)">
Expand Down

0 comments on commit 77fd716

Please sign in to comment.