Updated table to use check boxes for future selections. Added short circuiting when parsing seasons
This commit is contained in:
@@ -80,7 +80,8 @@ const populateTables = async () => {
|
||||
cell1.innerHTML = moviesInfo[i].Name;
|
||||
// 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>";
|
||||
cell2.innerHTML = "<input type=\"checkbox\" disabled />";
|
||||
cell2.className = "actions-cell";
|
||||
}
|
||||
}
|
||||
else{
|
||||
@@ -101,7 +102,7 @@ const populateTables = async () => {
|
||||
cell2.innerHTML = seriesInfo[i].Seasons.map(season => season.replace("Season ", "")).join(", ");
|
||||
// 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.innerHTML = "<input type=\"checkbox\" disabled />";
|
||||
cell3.className = "actions-cell";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user