mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-12 13:48:58 +02:00
fix: select the PR diff tab after content loads
This commit is contained in:
@@ -3264,6 +3264,7 @@ angular
|
||||
$http.get(`/api/pr/${$scope.pullRequestId}/content`).then(
|
||||
(res) => {
|
||||
$scope.details = res.data;
|
||||
$scope.tabState = { active: res.data.diff ? "diff" : "comments" };
|
||||
if (callback) {
|
||||
callback(res.data);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user