Add faild and success message

This commit is contained in:
Peter Maquiran
2021-05-25 16:12:40 +01:00
parent 7ebf041417
commit 4e9a4c3d2b
4 changed files with 164 additions and 25 deletions
+3 -9
View File
@@ -43,9 +43,7 @@ export class PublicationsService {
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options).toPromise().then(res =>{
console.log(res);
});
return this.http.post<any>(`${geturl}`, body, options)
}
UpdatePublicationFolder(body:any){
@@ -110,9 +108,7 @@ export class PublicationsService {
headers: this.headers,
/* params: params */
};
return this.http.post<any>(`${geturl}`, body, options).toPromise().then(res =>{
console.log(res);
});
return this.http.post<any>(`${geturl}`, body, options)
}
UpdatePublication(folderId:any,body:any){
@@ -123,9 +119,7 @@ export class PublicationsService {
headers: this.headers,
/* params: params */
};
return this.http.put<any>(`${geturl}`, body, options).toPromise().then(res =>{
console.log(res);
});
return this.http.put<any>(`${geturl}`, body, options)
}
DeletePublication(folderId:any,publicationId:any){