mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-16 14:59:07 +02:00
improve dashboard page
This commit is contained in:
@@ -161,7 +161,7 @@ angular
|
||||
$http.post("/api/user/default", params).then(
|
||||
() => {
|
||||
getDefault();
|
||||
$scope.message = "Saved"
|
||||
$scope.message = "Saved";
|
||||
},
|
||||
(error) => {
|
||||
$translate("ERRORS." + error.data.error).then((translation) => {
|
||||
@@ -219,7 +219,9 @@ angular
|
||||
$location.url("/");
|
||||
}
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
setTimeout(() => {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
}, 250)
|
||||
|
||||
$scope.repositories = [];
|
||||
$scope.search = "";
|
||||
@@ -232,6 +234,14 @@ angular
|
||||
$http.get("/api/user/anonymized_repositories").then(
|
||||
(res) => {
|
||||
$scope.repositories = res.data;
|
||||
for (let repo of $scope.repositories) {
|
||||
if (!repo.pageView) {
|
||||
repo.pageView = 0;
|
||||
}
|
||||
if (!repo.lastView) {
|
||||
repo.lastView = "";
|
||||
}
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
console.error(err);
|
||||
|
||||
Reference in New Issue
Block a user