F: implemented config service in components

This commit is contained in:
X4Lo committed 2025-02-15 23:58:27 +01:00
1 parent cfda451f71
commit 4c5a355dc6
11 files changed
+74 -43

No files matched your search

@@ -12,7 +12,6 @@ import { SeenModalComponent } from '../../../shared/components/modals/seen-modal
import { ConfirmModalComponent } from '../../../shared/components/modals/confirm-modal/confirm-modal.component';
import { EntrySeenService } from '../../../core/services/entry-seen.service';
import { EntryRatingsService } from '../../../core/services/entry-ratings.service';
import { EntryService } from '../../../core/services/entry.service';
import { EpisodeSeenService } from '../../../core/services/episode-seen.service';
import { SeasonService } from '../../../core/services/season.service';
@@ -21,9 +20,9 @@ import { ToastrService } from 'ngx-toastr';
import { EntrySeen } from '../../../shared/models/entry-seen.model';
import { EpisodeSeenModalComponent } from '../../../shared/components/modals/episode-seen-modal/episode-seen-modal.component';
import { MediaModalComponent } from '../media-modal/media-modal.component';
import { environment } from '../../../../environments/environment.prod';
import { Collection } from '../../../shared/models/collection.model';
import { EntrySettingsModalComponent } from '../entry-settings-modal/entry-settings-modal.component';
import { ConfigService } from '../../../core/services/config.service';
@Component({
selector: 'app-entry-page',
@@ -64,7 +63,7 @@ export class EntryPageComponent implements OnInit {
private entryService: EntryService,
private seasonService: SeasonService,
private entrySeenService: EntrySeenService,
private entryRatingsService: EntryRatingsService,
private configService: ConfigService,
private libraryService: LibraryService,
private dialog: MatDialog,
private route: ActivatedRoute,
@@ -369,7 +368,7 @@ export class EntryPageComponent implements OnInit {
}
return (
environment.API_URL +
this.configService.getBackendApiUrl() +
`/media/collections/backdrops/preview/${selectedBackdrop}`
);
}
@@ -687,7 +686,7 @@ export class EntryPageComponent implements OnInit {
selectedPosters[0].path
) {
poster =
environment.API_URL +
this.configService.getBackendApiUrl() +
`/media/entries/posters/original/${selectedPosters[0].path}`;
}
}
@@ -776,7 +775,7 @@ export class EntryPageComponent implements OnInit {
selectedPosters[0].path
) {
return (
environment.API_URL +
this.configService.getBackendApiUrl() +
`/media/entries/posters/original/${selectedPosters[0].path}`
);
}
@@ -803,7 +802,7 @@ export class EntryPageComponent implements OnInit {
selectedBackdrop[0].path
) {
return (
environment.API_URL +
this.configService.getBackendApiUrl() +
`/media/entries/backdrops/original/${selectedBackdrop[0].path}`
);
}