UX: dashboard links to git commits list instead of git comparison
Previously the link went to a comparison of the installed commit with the tests-passed branch. This change will show the list of installed commits.
This commit is contained in:
parent
d1b86352d4
commit
85140aa09a
|
@ -17,12 +17,10 @@ const VersionCheck = Discourse.Model.extend({
|
||||||
return missingVersionsCount === 1;
|
return missingVersionsCount === 1;
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("git_branch", "installed_sha")
|
@computed("installed_sha")
|
||||||
gitLink(gitBranch, installedSHA) {
|
gitLink(installedSHA) {
|
||||||
if (gitBranch && installedSHA) {
|
if (installedSHA) {
|
||||||
return `https://github.com/discourse/discourse/compare/${installedSHA}...${gitBranch}`;
|
return `https://github.com/discourse/discourse/commits/${installedSHA}`;
|
||||||
} else if (installedSHA) {
|
|
||||||
return `https://github.com/discourse/discourse/tree/${installedSHA}`;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue