Front/Back: add entry settings modal

This commit is contained in:
X4Lo committed 2024-10-21 15:43:09 +01:00
1 parent 8724a96b81
commit 625ec3367e
15 files changed
+334 -57

No files matched your search

@@ -24,20 +24,18 @@ export class EntryService {
}
// get entry by id
getEntryById(entryId: string) {
getEntryById(entryId: number) {
return this.http.get<Entry>(
`${this.backend_apiUrl}/${this.apiAction}/${entryId}`
);
}
// update entry
updateEntry(entry: Entry) {
updateEntry(entryId: number, entryData: any) {
return this.http.put<Entry>(
`${this.backend_apiUrl}/${this.apiAction}/${entry.id}`,
`${this.backend_apiUrl}/${this.apiAction}/${entryId}`,
{
favorit: entry.favorit,
watchlist: entry.watchlist,
hidden: entry.hidden,
entryData: entryData,
}
);
}
@@ -69,6 +67,12 @@ export class EntryService {
);
}
syncSeries() {
return this.http.get<Entry[]>(
`${this.backend_apiUrl}/${this.apiAction}/sync-series`
);
}
fetchEntryCollectionById(entryId: number) {
return this.http.get<any>(
`${this.backend_apiUrl}/${this.apiAction}/${entryId}/fetch-collection`