- Fix repair bugs

- Minor html/js bugs from new template
- Other minor issues
This commit is contained in:
Mukhtar Akere
2025-07-13 06:30:02 +01:00
parent 604402250e
commit afe577bf2f
13 changed files with 54 additions and 62 deletions

View File

@@ -350,6 +350,7 @@
<script>
// Tab Navigation Handler
document.addEventListener('DOMContentLoaded', function() {
window.configManager = new ConfigManager();
const tabButtons = document.querySelectorAll('.tab-button');
const tabContents = document.querySelectorAll('.tab-content');

View File

@@ -138,4 +138,10 @@
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
let downloadFolder = "{{ .DownloadFolder }}" || '';
window.downloadManager = new DownloadManager(downloadFolder);
});
</script>
{{ end }}

View File

@@ -134,4 +134,10 @@
<i class="bi bi-trash"></i>Delete Torrent
</a></li>
</ul>
<script>
document.addEventListener('DOMContentLoaded', () => {
window.dashboard = new TorrentDashboard();
});
</script>
{{ end }}

View File

@@ -17,7 +17,7 @@
<i class="bi bi-collection mr-2 text-secondary"></i>Arr Instance
</span>
</label>
<select class="select select-bordered" id="arrSelect" required>
<select class="select select-bordered" id="arrSelect">
<option value="">Select an Arr instance</option>
</select>
<div class="label">
@@ -171,14 +171,6 @@
<h3 class="font-bold text-2xl">
<i class="bi bi-info-circle mr-2 text-primary"></i>Job Details
</h3>
<div class="flex gap-2">
<button type="button" class="btn btn-primary btn-sm hidden" id="processJobBtn">
<i class="bi bi-play-fill mr-1"></i>Process
</button>
<button type="button" class="btn btn-warning btn-sm hidden" id="stopJobBtn">
<i class="bi bi-stop-fill mr-1"></i>Stop
</button>
</div>
</div>
<div class="space-y-6">
@@ -322,7 +314,21 @@
<div class="flex-1">
<small class="text-base-content/60" id="modalFooterStats">-</small>
</div>
<div class="flex gap-2">
<button type="button" class="btn btn-primary btn-sm hidden" id="processJobBtn">
<i class="bi bi-play-fill mr-1"></i>Process
</button>
<button type="button" class="btn btn-warning btn-sm hidden" id="stopJobBtn">
<i class="bi bi-stop-fill mr-1"></i>Stop
</button>
</div>
</div>
</div>
</dialog>
<script>
document.addEventListener('DOMContentLoaded', () => {
window.repairManager = new RepairManager();
window.RepairUtils = RepairUtils;
});
</script>
{{ end }}