add div before download file and right title display

This commit is contained in:
Eudes Inácio
2022-04-08 16:48:52 +01:00
parent 871ac764f8
commit 4512c9622d
7 changed files with 120 additions and 38 deletions
+5 -2
View File
@@ -56,6 +56,7 @@ export class MessageService {
messageSend = false
delate = false
delateRequest = false
downloadLoader: boolean;
constructor(private storage: Storage,
private NfService: NfService,
@@ -182,8 +183,8 @@ export class MessageService {
async sendRequest(params) {
if(params?.attachments?.image_url) {
delete params?.attachments?.image_url
if(params?.attachments[0]?.image_url) {
delete params?.attachments[0]?.image_url
}
@@ -225,6 +226,7 @@ export class MessageService {
downloadFileMsg() {
this.downloadLoader = true;
let downloadFile = "";
this.AttachmentsService.downloadFile(this.file.guid).subscribe(async (event) => {
@@ -256,6 +258,7 @@ export class MessageService {
// save the changes to the storage
this.save()
this.downloadLoader = false;
}
});