mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-17 11:10:23 +00:00
gitweb: Fix issue with page not refreshing during uninstall
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
2454527740
commit
c608219795
@ -33,7 +33,9 @@ class GitwebAppView(views.AppView):
|
||||
repos = gitweb.get_repo_list()
|
||||
context['repos'] = repos
|
||||
context['cloning'] = any('clone_progress' in repo for repo in repos)
|
||||
context['refresh_page_sec'] = 3 if context['cloning'] else None
|
||||
if context['cloning']:
|
||||
context['refresh_page_sec'] = 3
|
||||
|
||||
return context
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user