+
diff --git a/src/app/pages/sagas/view-saga/view-saga.page.ts b/src/app/pages/sagas/view-saga/view-saga.page.ts
index 6466586..8a3fe16 100644
--- a/src/app/pages/sagas/view-saga/view-saga.page.ts
+++ b/src/app/pages/sagas/view-saga/view-saga.page.ts
@@ -56,9 +56,9 @@ export class ViewSagaPage implements OnInit {
});
}
- bannerUrl(): string {
+ bannerUrl(): any {
if(this.item.bannerUrl) {
- return 'url(' + this.configService.get('appUrl') + this.item.bannerUrl + ')';
+ return {'background-image': 'url(' + this.configService.get('apiUrl') + "/files/image" + this.item.bannerUrl + ')'}
} else {
return '';
}
@@ -66,7 +66,7 @@ export class ViewSagaPage implements OnInit {
coverUrl(): string {
if(this.item.coverUrl) {
- return this.configService.get('appUrl') + this.item.coverUrl;
+ return this.configService.get('apiUrl') + "/files/image" + this.item.coverUrl;
} else {
return '';
}
diff --git a/src/app/services/sagas/saga.service.ts b/src/app/services/sagas/saga.service.ts
index bf30657..17587ae 100644
--- a/src/app/services/sagas/saga.service.ts
+++ b/src/app/services/sagas/saga.service.ts
@@ -34,6 +34,10 @@ export class SagaService {
return this.http.post(`${this.configService.get('apiUrl')}/saga`, saga);
}
+ update(episode: SagaModel) {
+ return this.http.put(`${this.configService.get('apiUrl')}/saga`, episode);
+ }
+
uploadPdf(file : any): Observable {
let formData = new FormData();
formData.append("file", file, file.name);
From a519ce4b336bacb5a0895241aadcbc9fd08af1dc Mon Sep 17 00:00:00 2001
From: Titohma <102875311+Titohma@users.noreply.github.com>
Date: Sat, 15 Apr 2023 12:53:13 +0200
Subject: [PATCH 5/5] bump project version
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index d109bb0..26e8188 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "les-sagas-mp3",
- "version": "0.10.1",
+ "version": "0.11.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "les-sagas-mp3",
- "version": "0.10.1",
+ "version": "0.11.0",
"dependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
diff --git a/package.json b/package.json
index 37a0212..78c9106 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "les-sagas-mp3",
- "version": "0.10.1",
+ "version": "0.11.0",
"author": "Les Sagas MP3",
"homepage": "https://github.com/Les-Sagas-MP3",
"scripts": {