mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
add div before download file and right title display
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user