diff --git a/src/components/panels/Machine/UpdatePanel/Entry.vue b/src/components/panels/Machine/UpdatePanel/Entry.vue index 13fe9730e..1ea5d2859 100644 --- a/src/components/panels/Machine/UpdatePanel/Entry.vue +++ b/src/components/panels/Machine/UpdatePanel/Entry.vue @@ -320,8 +320,12 @@ export default class UpdatePanelEntry extends Mixins(BaseMixin) { return semver.gt(this.remoteVersion, this.localVersion) } + get repo_name() { + return this.repo.repo_name ?? this.repo.name ?? '' + } + get webLinkRelease() { - return `https://github.com/${this.repo.owner}/${this.repo.name}/releases/tag/${this.repo.remote_version}` + return `https://github.com/${this.repo.owner}/${this.repo_name}/releases/tag/${this.repo.remote_version}` } get hideUpdateWarning() { diff --git a/src/components/panels/Machine/UpdatePanel/GitCommitsListDayCommit.vue b/src/components/panels/Machine/UpdatePanel/GitCommitsListDayCommit.vue index 47df5d42e..7fcde9471 100644 --- a/src/components/panels/Machine/UpdatePanel/GitCommitsListDayCommit.vue +++ b/src/components/panels/Machine/UpdatePanel/GitCommitsListDayCommit.vue @@ -85,8 +85,12 @@ export default class GitCommitsListDayCommit extends Mixins(BaseMixin) { }) } + get repo_name() { + return this.repo.repo_name ?? this.repo.name ?? '' + } + get commitHref() { - return `https://github.com/${this.repo.owner}/${this.repo.name}/commit/${this.commit.sha}` + return `https://github.com/${this.repo.owner}/${this.repo_name}/commit/${this.commit.sha}` } get commitShortSha() { diff --git a/src/components/panels/Machine/UpdatePanel/UpdateHintAlert.vue b/src/components/panels/Machine/UpdatePanel/UpdateHintAlert.vue index 15a38f9e1..97c15c621 100644 --- a/src/components/panels/Machine/UpdatePanel/UpdateHintAlert.vue +++ b/src/components/panels/Machine/UpdatePanel/UpdateHintAlert.vue @@ -69,13 +69,17 @@ export default class UpdateHintAlert extends Mixins(BaseMixin) { return null } + get repo_name() { + return this.repo.repo_name ?? this.repo.name ?? '' + } + get externalLink() { if (this.name === 'klipper') return '//www.klipper3d.org/Config_Changes.html' if (this.name === 'moonraker') return '//moonraker.readthedocs.io/en/latest/changelog/' if (this.repo?.configured_type === 'web') - return `//github.com/${this.repo.owner}/${this.repo.name}/releases/tag/${this.repo.remote_version}` + return `//github.com/${this.repo.owner}/${this.repo_name}/releases/tag/${this.repo.remote_version}` - return `//github.com/${this.repo.owner}/${this.repo.name}` + return `//github.com/${this.repo.owner}/${this.repo_name}` } get externalLinkText() { diff --git a/src/store/server/updateManager/types.ts b/src/store/server/updateManager/types.ts index 3e2361a46..91dfbe121 100644 --- a/src/store/server/updateManager/types.ts +++ b/src/store/server/updateManager/types.ts @@ -32,6 +32,7 @@ export interface ServerUpdateManagerStateGitRepoCommit { export interface ServerUpdateManagerStateGitRepo { name: string + repo_name?: string configured_type: string detected_type?: string channel?: string