fix: use repo_name instead of update_manager module name for creating github link
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
2f1fd2788e
commit
eecd24a8d6
2 files changed
+5
-2
No files matched your search
@@ -195,7 +195,7 @@
|
||||
<p class="caption mb-0"><span class="font-weight-bold text-decoration-none white--text">{{ commit.author}}</span> <span>{{ convertCommitDate(commit.date) }}</span></p>
|
||||
</v-col>
|
||||
<v-col class="col-auto pt-4 ">
|
||||
<v-chip outlined label small :href="'https://github.com/'+commitsOverlay.owner+'/'+commitsOverlay.modul+'/commit/'+commit.sha" target="_blank">{{ commit.sha.substr(0, 6)}}</v-chip>
|
||||
<v-chip outlined label small :href="'https://github.com/'+commitsOverlay.owner+'/'+commitsOverlay.repoName+'/commit/'+commit.sha" target="_blank">{{ commit.sha.substr(0, 6)}}</v-chip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</li>
|
||||
@@ -233,6 +233,7 @@ interface commitsOverlay {
|
||||
bool: boolean
|
||||
owner: string
|
||||
modul: string
|
||||
repoName: string
|
||||
commits: ServerUpdateMangerStateVersionInfoGitRepoCommits[]
|
||||
groupedCommits: groupedCommit[]
|
||||
}
|
||||
@@ -253,6 +254,7 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
bool: false,
|
||||
owner: '',
|
||||
modul: '',
|
||||
repoName: '',
|
||||
commits: [],
|
||||
groupedCommits: []
|
||||
}
|
||||
@@ -473,6 +475,7 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
this.openCommits = []
|
||||
this.commitsOverlay.owner = object.owner
|
||||
this.commitsOverlay.modul = key
|
||||
this.commitsOverlay.repoName = object.repo_name ?? key
|
||||
this.commitsOverlay.commits = object.commits_behind
|
||||
this.commitsOverlay.groupedCommits = []
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ export const defaultLogoColor = '#D41216'
|
||||
export const defaultPrimaryColor = '#2196f3'
|
||||
|
||||
export const minKlipperVersion = 'v0.9.1-778'
|
||||
export const minMoonrakerVersion = 'v0.7.1-106'
|
||||
export const minMoonrakerVersion = 'v0.7.1-107'
|
||||
|
||||
export const colorArray = [
|
||||
'#F44336',
|
||||
|
||||
Reference in new issue
Block a user