You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Swaparr settings display in settings forms
- Updated the Swaparr settings section to improve UI consistency by removing conditional opacity and pointer events for disabled states.
- Enhanced user feedback by simplifying help text related to Swaparr integration, ensuring clarity regardless of global settings status.
- Maintained dynamic rendering of Swaparr options based on global settings, ensuring a seamless user experience across instances.
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Radarr instance${this.isSwaparrGloballyEnabled() ? '' : ' (Swaparr is globally disabled)'}</p>
663
+
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Radarr instance</p>
663
664
</div>
665
+
` : ''}
664
666
</div>
665
667
</div>
666
668
`;
@@ -980,14 +982,16 @@ const SettingsForms = {
980
982
</div>
981
983
</div>
982
984
985
+
${this.isSwaparrGloballyEnabled() ? `
983
986
<div class="setting-item">
984
987
<label for="lidarr-swaparr-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/swaparr.html" class="info-icon" title="Enable Swaparr stalled download monitoring for this instance" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Swaparr:</label>
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Lidarr instance${this.isSwaparrGloballyEnabled() ? '' : ' (Swaparr is globally disabled)'}</p>
992
+
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Lidarr instance</p>
990
993
</div>
994
+
` : ''}
991
995
</div>
992
996
</div>
993
997
`;
@@ -1224,14 +1228,16 @@ const SettingsForms = {
1224
1228
</div>
1225
1229
</div>
1226
1230
1231
+
${this.isSwaparrGloballyEnabled() ? `
1227
1232
<div class="setting-item">
1228
1233
<label for="readarr-swaparr-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/swaparr.html" class="info-icon" title="Enable Swaparr stalled download monitoring for this instance" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Swaparr:</label>
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Readarr instance${this.isSwaparrGloballyEnabled() ? '' : ' (Swaparr is globally disabled)'}</p>
1238
+
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Readarr instance</p>
1234
1239
</div>
1240
+
` : ''}
1235
1241
</div>
1236
1242
</div>
1237
1243
`;
@@ -1461,14 +1467,16 @@ const SettingsForms = {
1461
1467
</div>
1462
1468
</div>
1463
1469
1470
+
${this.isSwaparrGloballyEnabled() ? `
1464
1471
<div class="setting-item">
1465
1472
<label for="whisparr-swaparr-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/swaparr.html" class="info-icon" title="Enable Swaparr stalled download monitoring for this instance" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Swaparr:</label>
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Whisparr V2 instance${this.isSwaparrGloballyEnabled() ? '' : ' (Swaparr is globally disabled)'}</p>
1477
+
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Whisparr V2 instance</p>
1471
1478
</div>
1479
+
` : ''}
1472
1480
</div>
1473
1481
</div>
1474
1482
`;
@@ -1759,14 +1767,16 @@ const SettingsForms = {
1759
1767
</div>
1760
1768
</div>
1761
1769
1770
+
${this.isSwaparrGloballyEnabled() ? `
1762
1771
<div class="setting-item">
1763
1772
<label for="eros-swaparr-${index}"><a href="https://plexguide.github.io/Huntarr.io/apps/swaparr.html" class="info-icon" title="Enable Swaparr stalled download monitoring for this instance" target="_blank" rel="noopener"><i class="fas fa-info-circle"></i></a>Swaparr:</label>
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Whisparr V3 instance${this.isSwaparrGloballyEnabled() ? '' : ' (Swaparr is globally disabled)'}</p>
1777
+
<p class="setting-help">Enable Swaparr to monitor and remove stalled downloads for this Whisparr V3 instance</p>
0 commit comments