diff --git a/src/components/panels/Machine/UpdatePanel/Entry.vue b/src/components/panels/Machine/UpdatePanel/Entry.vue
index a13f7c3e8..f837eb740 100644
--- a/src/components/panels/Machine/UpdatePanel/Entry.vue
+++ b/src/components/panels/Machine/UpdatePanel/Entry.vue
@@ -2,7 +2,7 @@
- {{ repo.name }}
+ {{ name }}
@@ -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'
}
diff --git a/src/plugins/helpers.ts b/src/plugins/helpers.ts
index 719408ce8..c0be39dab 100644
--- a/src/plugins/helpers.ts
+++ b/src/plugins/helpers.ts
@@ -72,11 +72,11 @@ export function formatConsoleMessage(message: string): string {
message = message.replace(/\n\/\/ /g, '\n')
// remove echo
message = message.replace(/^echo:/g, '')
- message = message.replace(/^echo: /g, '')
// replace linebreaks with html
message = message.replace('\n// ', '
')
message = message.replace(/\r\n|\r|\n/g, '
')
- return message
+
+ return message.trim()
}
export const convertName = (name: string): string => {