fixed entry genres not showing up after updating favorit/hidden status

This commit is contained in:
X4Lo committed 2024-05-11 06:25:52 +01:00
1 parent 5807652843
commit dde494a11e
2 files changed
+27 -21

No files matched your search

@@ -70,6 +70,7 @@ export class EntryPageComponent implements OnInit {
this.route.data.subscribe(
(data) => {
this.entry = data['entry'] as Entry;
// console.log(this.entry);
if (this.entry.is_tvseries) {
// ? sorting seasons
@@ -90,7 +91,7 @@ export class EntryPageComponent implements OnInit {
season.episodes = episodes;
},
error: (error) => {
console.log(`Couldn't fetch season episodes data:`, error);
// console.log(`Couldn't fetch season episodes data:`, error);
this.toastr.success(
'Error',
`Couldn't get season ${season.season_number} episodes.`,
@@ -163,7 +164,7 @@ export class EntryPageComponent implements OnInit {
// TODO show notification
} else {
console.log('Seen dialog was cancelled');
// console.log('Seen dialog was cancelled');
}
});
}
@@ -251,7 +252,7 @@ export class EntryPageComponent implements OnInit {
},
complete: () => {
this.lockActions = false;
}
},
});
}
@@ -266,7 +267,8 @@ export class EntryPageComponent implements OnInit {
});
dialogRef.afterClosed().subscribe((result) => {
console.log('Modal Closed: ', result);
// TODO update entry page collections
// console.log('Modal Closed: ', result);
});
}
}
@@ -368,7 +370,8 @@ export class EntryPageComponent implements OnInit {
// console.log('Episode seen dialog closed with:', result);
if (result.watchDate == '') {
// TODO show no date was passed notification
return console.log(`Episode seen dialog closed with no date.`);
console.log(`Episode seen dialog closed with no date.`);
return;
}
episodeSeen.date_seen = result.watchDate;
@@ -402,7 +405,6 @@ export class EntryPageComponent implements OnInit {
dialogRef.afterClosed().subscribe((result) => {
if (result) {
console.log(result);
if (result.confirmed != true) return;
// first start by calling the service and deleting the episode-seen
@@ -442,7 +444,7 @@ export class EntryPageComponent implements OnInit {
}
triggerEpisodeWatchedDeletedEvent() {
console.log(`Emitted Episode Watched Deleted Event`);
// console.log(`Emitted Episode Watched Deleted Event`);
}
// + end EPISODE SEEN