mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 22:48:00 +02:00
fix mulitple bugs
This commit is contained in:
+20
-1
@@ -1374,7 +1374,18 @@ angular
|
||||
if (res.data.options.expirationDate) {
|
||||
$scope.options.expirationDate = new Date(res.data.options.expirationDate);
|
||||
}
|
||||
$scope.details = (await $http.get(`/api/pr/${res.data.source.repositoryFullName}/${res.data.source.pullRequestId}`)).data;
|
||||
try {
|
||||
$scope.details = (await $http.get(`/api/pr/${res.data.source.repositoryFullName}/${res.data.source.pullRequestId}`)).data;
|
||||
} catch (error) {
|
||||
const code = error && error.data && error.data.error;
|
||||
if (code) {
|
||||
$translate("ERRORS." + code).then((translation) => {
|
||||
$scope.addToast({ title: "Error", date: new Date(), body: translation });
|
||||
$scope.error = translation;
|
||||
}, console.error);
|
||||
displayErrorMessage(code);
|
||||
}
|
||||
}
|
||||
$scope.$apply();
|
||||
},
|
||||
() => { $location.url("/404"); }
|
||||
@@ -2867,3 +2878,11 @@ angular
|
||||
getConference();
|
||||
},
|
||||
]);
|
||||
|
||||
$(document).on("click", "#navbarSupportedContent .nav-link", function (e) {
|
||||
if ($(this).attr("data-toggle") === "dropdown") return;
|
||||
var $collapse = $("#navbarSupportedContent");
|
||||
if ($collapse.hasClass("show")) {
|
||||
$collapse.collapse("hide");
|
||||
}
|
||||
});
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user