mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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}`;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user