mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve add attachment
This commit is contained in:
@@ -71,10 +71,23 @@ export class AttachmentsService {
|
||||
headers: this.headers,
|
||||
}
|
||||
|
||||
alert('send');
|
||||
|
||||
console.log('send', body);
|
||||
return this.http.post(`${geturl}`, body, options);
|
||||
}
|
||||
|
||||
deleteEventAttachmentById(attachmentId) {
|
||||
|
||||
let geturl = environment.apiURL + `Attachments/Delete?attachmentId=${attachmentId}`;
|
||||
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("attachmentId", attachmentId);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
}
|
||||
|
||||
return this.http.post(`${geturl}`, options);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user