From debc6ef08408401d71e9ad1b127663145cc26775 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Mon, 6 Sep 2021 14:58:57 +0200 Subject: [PATCH] fix: progress bar in status page --- public/script/app.js | 2 +- src/routes/repository-public.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/public/script/app.js b/public/script/app.js index df12c08..217d238 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -693,7 +693,7 @@ angular $scope.progress = 10; } else if ($scope.repo.status == "downloaded") { $scope.progress = 50; - } else if ($scope.repo.status == "downloading") { + } else if ($scope.repo.status == "download") { $scope.progress = 25; } else if ($scope.repo.status == "preparing") { $scope.progress = 25; diff --git a/src/routes/repository-public.ts b/src/routes/repository-public.ts index 706b701..9f59f4e 100644 --- a/src/routes/repository-public.ts +++ b/src/routes/repository-public.ts @@ -65,7 +65,6 @@ router.get( let download = false; const conference = await repo.conference(); if (conference) { - console.log(conference.quota) download = conference.quota.size > -1 && !!config.ENABLE_DOWNLOAD &&