Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(updateManager): use info_tag desc for the name #1959

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/panels/Machine/UpdatePanel/Entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<v-row class="py-2">
<v-col class="pl-6">
<strong>{{ repo.name }}</strong>
<strong>{{ name }}</strong>
<br />
<template v-if="type === 'git_repo' && commitsBehind.length">
<a class="info--text cursor--pointer" @click="boolShowCommitList = true">
Expand Down Expand Up @@ -159,6 +159,11 @@ export default class UpdatePanelEntry extends Mixins(BaseMixin) {
@Prop({ required: true }) readonly repo!: ServerUpdateManagerStateGitRepo
get name() {
const info_tags = this.repo.info_tags ?? []
const description = info_tags.find((tag) => tag.startsWith('desc='))
if (description && description.trim() !== 'desc=') return description.replace('desc=', '').trim()
return this.repo.name ?? 'UNKNOWN'
}
Expand Down
Loading