mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve success message
This commit is contained in:
@@ -46,11 +46,13 @@ export class PublicationsService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
UpdatePublicationFolder(body:any){
|
||||
UpdatePublicationFolder(body:any) {
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
|
||||
return this.http.put<any>(`${geturl}`, body, options).toPromise().then(res =>{
|
||||
console.log(res);
|
||||
});
|
||||
@@ -89,10 +91,6 @@ export class PublicationsService {
|
||||
|
||||
/* params = params.set("id", publicationId); */
|
||||
|
||||
|
||||
console.log(params);
|
||||
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
@@ -119,6 +117,7 @@ export class PublicationsService {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
|
||||
return this.http.put<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
@@ -131,7 +130,7 @@ export class PublicationsService {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
return this.http.delete(`${geturl}`, options).toPromise();
|
||||
return this.http.delete(`${geturl}`, options)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user