diff --git a/gui/slick/interfaces/default/inc_top.tmpl b/gui/slick/interfaces/default/inc_top.tmpl index e8beb9b1..e67363a9 100644 --- a/gui/slick/interfaces/default/inc_top.tmpl +++ b/gui/slick/interfaces/default/inc_top.tmpl @@ -90,7 +90,9 @@ \$("#SubMenu a:contains('Clear History')").addClass('btn clearhistory').html(' Clear History'); \$("#SubMenu a:contains('Trim History')").addClass('btn trimhistory').html(' Trim History'); \$("#SubMenu a[href$='/errorlogs/clearerrors/']").addClass('btn').html(' Clear Errors'); + #if sickbeard.GIT_USERNAME and sickbeard.GIT_PASSWORD and sickbeard.GIT_AUTOISSUES == 1: \$("#SubMenu a[href$='/errorlogs/submit_errors/']").addClass('btn').html(' Submit Errors'); + #end if \$("#SubMenu a:contains('Re-scan')").addClass('btn').html(' Re-scan'); \$("#SubMenu a:contains('Backlog Overview')").addClass('btn').html(' Backlog Overview'); \$("#SubMenu a[href$='/home/updatePLEX/']").addClass('btn').html(' Update PLEX'); diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 70e898b6..3a814af3 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -4724,7 +4724,7 @@ class ErrorLogs(WebRoot): return t.respond() def haveErrors(self): - if len(classes.ErrorViewer.errors) > 0: + if len(classes.ErrorViewer.errors) > 0 and sickbeard.GIT_USERNAME and sickbeard.GIT_PASSWORD and sickbeard.GIT_AUTOISSUES == 1: return True def clearerrors(self):