This commit is contained in:
X4Lo committed 2025-01-14 17:56:02 +01:00
1 parent 289dc98042
commit 65177c7553
18 files changed
+156 -203

No files matched your search

@@ -179,7 +179,7 @@
}
/* ! collection */
/* ! collection banner */
.card-img-overlay:hover h5 {
color: var(--shz-blue-default) !important;
}
@@ -188,6 +188,8 @@
cursor: pointer;
}
.card-img-overlay img {
.collection-card,
.collection-card img {
aspect-ratio: 16/9;
height: 100%;
}
@@ -147,6 +147,7 @@ export class EntryPageComponent implements OnInit {
if (entryRatings) {
// TODO show notification
this.entry.entryRating = entryRatings;
this.libraryService.setEntry(this.entry);
}
},
error: (error) => {
@@ -217,7 +218,10 @@ export class EntryPageComponent implements OnInit {
// ? from the watchlist, so now we need to refrech libraryService in order to
// ? update the watchlist page
if (this.entry.watchlist) {
this.libraryService.refreshEntries().subscribe();
this.entry.watchlist = false;
this.libraryService.setEntry(this.entry);
// this.libraryService.refetchEntries().subscribe();
}
}
},
@@ -284,6 +288,7 @@ export class EntryPageComponent implements OnInit {
// console.log(`Entry updated: `, entry);
this.entry = entry;
this.entry.isInLibrary = true;
this.libraryService.setEntry(this.entry);
},
error: (error) => {
console.log(`Error updating entry: `, error);
@@ -306,6 +311,7 @@ export class EntryPageComponent implements OnInit {
// console.log(`Entry updated: `, entry);
this.entry = entry;
this.entry.isInLibrary = true;
this.libraryService.setEntry(this.entry);
},
error: (error) => {
console.log(`Error updating entry: `, error);
@@ -718,8 +724,8 @@ export class EntryPageComponent implements OnInit {
settingsModal() {
const dialogRef = this.dialog.open(EntrySettingsModalComponent, {
width: '800px',
height: '600px',
width: '400px',
// height: '600px',
minHeight: '50%',
panelClass: 'media-dialog-container',
data: {
@@ -734,7 +740,8 @@ export class EntryPageComponent implements OnInit {
this.entry.hidden = result.entry.hidden;
this.entry.showInCalendar = result.entry.showInCalendar;
this.entry.autoSync = result.entry.autoSync;
} else {
this.libraryService.setEntry(this.entry);
}
});
}