- 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

@@ -130,11 +130,6 @@ class RepairManager {
const arr = this.refs.arrSelect.value;
const mediaIdsValue = this.refs.mediaIds.value.trim();
if (!arr) {
window.decypharrUtils.createToast('Please select an Arr instance', 'warning');
return;
}
const mediaIds = mediaIdsValue ?
mediaIdsValue.split(',').map(id => id.trim()).filter(Boolean) :
[];
@@ -1105,15 +1100,4 @@ const RepairUtils = {
default: return 0;
}
}
};
// Initialize repair manager when DOM is ready
document.addEventListener('DOMContentLoaded', () => {
window.repairManager = new RepairManager();
window.RepairUtils = RepairUtils;
});
// Export for ES6 modules if needed
if (typeof module !== 'undefined' && module.exports) {
module.exports = { RepairManager, RepairUtils };
}
};