Skip to content

Commit 1836e40

Browse files
committed
Fix Prowlarr settings name assignment and update UI class names for consistency
- Set the Prowlarr name to a fixed value since it is always a single instance. - Updated class names in the Prowlarr configuration UI for better clarity and consistency, changing 'prowlarr-item' to 'instance-item' and 'prowlarr-header' to 'instance-header'. - Removed the input field for the Prowlarr name as it is no longer necessary.
1 parent 6f8158d commit 1836e40

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

frontend/static/js/settings_forms.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4116,7 +4116,7 @@ const SettingsForms = {
41164116
settings.instances = [];
41174117

41184118
settings.enabled = getInputValue('#prowlarr-enabled-0', true);
4119-
settings.name = getInputValue('#prowlarr-name-0', 'Prowlarr');
4119+
settings.name = 'Prowlarr'; // Fixed name since Prowlarr is always single instance
41204120
settings.api_url = getInputValue('#prowlarr-url-0', '');
41214121
settings.api_key = getInputValue('#prowlarr-key-0', '');
41224122
}
@@ -5794,14 +5794,14 @@ const SettingsForms = {
57945794
">
57955795
<h3>Prowlarr Configuration</h3>
57965796
<div class="prowlarr-container">
5797-
<div class="prowlarr-item" data-instance-id="0">
5798-
<div class="prowlarr-header">
5797+
<div class="instance-item" data-instance-id="0">
5798+
<div class="instance-header">
57995799
<h4>Prowlarr</h4>
5800-
<div class="prowlarr-actions">
5801-
<span class="connection-status" id="prowlarr-status-0" style="margin-left: 10px; font-weight: bold; font-size: 0.9em;"></span>
5800+
<div class="instance-actions">
5801+
<span class="connection-status" id="prowlarr-status-0"></span>
58025802
</div>
58035803
</div>
5804-
<div class="prowlarr-content">
5804+
<div class="instance-content">
58055805
<div class="setting-item">
58065806
<label for="prowlarr-enabled-0">Enabled:</label>
58075807
<label class="toggle-switch" style="width:40px; height:20px; display:inline-block; position:relative;">
@@ -5810,11 +5810,6 @@ const SettingsForms = {
58105810
</label>
58115811
<p class="setting-help">Enable or disable Prowlarr integration</p>
58125812
</div>
5813-
<div class="setting-item">
5814-
<label for="prowlarr-name-0">Name:</label>
5815-
<input type="text" id="prowlarr-name-0" name="name" value="${settings.name || 'Prowlarr'}" placeholder="Friendly name for Prowlarr">
5816-
<p class="setting-help">Friendly name for this Prowlarr instance</p>
5817-
</div>
58185813
<div class="setting-item">
58195814
<label for="prowlarr-url-0">URL:</label>
58205815
<input type="text" id="prowlarr-url-0" name="api_url" value="${settings.api_url || ''}" placeholder="Base URL for Prowlarr (e.g., http://localhost:9696)" data-instance-index="0">

0 commit comments

Comments
 (0)