Media-Cleaner-Homepage-and-Api #7

Merged
T-Gander merged 12 commits from Media-Cleaner-Homepage-and-Api into main 2026-01-27 08:16:01 -07:00
Showing only changes of commit a69f9df4e1 - Show all commits

View File

@@ -69,7 +69,9 @@ document.addEventListener('pageshow', async () => {
var cell1 = row.insertCell(0); var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1); var cell2 = row.insertCell(1);
cell1.innerHTML = moviesInfo[i].Name; cell1.innerHTML = moviesInfo[i].Name;
cell2.innerHTML = "<button>Delete</button>"; // Will need to be enabled once radarr and sonarr integration is enabled.
// Maybe change this to an element to remove hard coding.
cell2.innerHTML = "<button type=\"button\" disabled>Delete</button>";
} }
for(let i = 0; i < seriesInfo.length; i++){ for(let i = 0; i < seriesInfo.length; i++){
@@ -79,7 +81,9 @@ document.addEventListener('pageshow', async () => {
var cell3 = row.insertCell(2); var cell3 = row.insertCell(2);
cell1.innerHTML = seriesInfo[i].Name; cell1.innerHTML = seriesInfo[i].Name;
cell2.innerHTML = seriesInfo[i].Seasons.map(season => season.replace("Season ", "")).join(", "); cell2.innerHTML = seriesInfo[i].Seasons.map(season => season.replace("Season ", "")).join(", ");
cell3.innerHTML = "<button>Delete</button>"; // Will need to be enabled once radarr and sonarr integration is enabled.
// Maybe change this to an element to remove hard coding.
cell3.innerHTML = "<button type=\"button\" disabled>Delete</button>";
cell3.className = "actions-cell"; cell3.className = "actions-cell";
} }
}; };
@@ -105,7 +109,7 @@ document.addEventListener('pageshow', async () => {
linkbtns.forEach(btn => { linkbtns.forEach(btn => {
btn.style.background = "#0f0f0f"; btn.style.background = "#0f0f0f";
btn.style.border = '1px solid'; btn.style.border = '1px solid';
btn.style.padding = '1rem 2rem'; btn.style.padding = '0.8rem 1.8rem';
btn.style.fontSize = "1.2rem" btn.style.fontSize = "1.2rem"
btn.style.color = "white"; btn.style.color = "white";
btn.style.textDecoration = 'none'; btn.style.textDecoration = 'none';