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:
Neil Lalonde 2019-10-17 15:08:43 -04:00
parent d1b86352d4
commit 85140aa09a
1 changed files with 4 additions and 6 deletions

View File

@ -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}`;
} }
}, },