From d5fc0d190874a115209db7b35d5b23a81d4ba680 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis=20V=C3=A9zina?=
<5130500+morpheus65535@users.noreply.github.com>
Date: Mon, 3 Aug 2020 11:32:31 -0400
Subject: [PATCH] Fix for #1051.
---
views/_main.html | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/views/_main.html b/views/_main.html
index 0f24d1d49..24008b2c7 100644
--- a/views/_main.html
+++ b/views/_main.html
@@ -254,16 +254,23 @@
-
+
+
+ {% if settings.general.getboolean('use_sonarr') %}
+
+ {% endif %}
+ {% if settings.general.getboolean('use_radarr') %}
+
+ {% endif %}
+
{% if settings.general.getboolean('use_sonarr') %}
-
- Series
+ Series
{% endif %}
{% if settings.general.getboolean('use_radarr') %}
- - Movies
+ - Movies
{% endif %}
@@ -283,11 +290,11 @@
+ class="fas fa-laptop">
@@ -426,19 +433,19 @@
async: true,
success: function (data) {
if (data['throttled_providers']) {
- $('#throttled_providers_count').html('' + data['throttled_providers'] + '');
+ $('.throttled_providers_count').html('' + data['throttled_providers'] + '');
} else {
- $('#throttled_providers_count').html('');
+ $('.throttled_providers_count').html('');
}
if (data['missing_episodes']) {
- $('#wanted_series_badge').html('' + data['missing_episodes'] + '');
+ $('.wanted_series_badge').html('' + data['missing_episodes'] + '');
} else {
- $('#wanted_series_badge').html('');
+ $('.wanted_series_badge').html('');
}
if (data['missing_movies']) {
- $('#wanted_movies_badge').html('' + data['missing_movies'] + '');
+ $('.wanted_movies_badge').html('' + data['missing_movies'] + '');
} else {
- $('#wanted_movies_badge').html('');
+ $('.wanted_movies_badge').html('');
}
},