further improvements

This commit is contained in:
tiago.kayaya
2021-09-23 12:13:20 +01:00
parent ccd211140a
commit 07cbb237e4
20 changed files with 249 additions and 111 deletions
+12 -6
View File
@@ -206,9 +206,11 @@ export class FileService {
});
await modal.present();
modal.onDidDismiss().then(async res=>{
if(res){
const data = res.data;
if(data.selected){
const loader = this.toastService.loading();
const data = res.data;
this.documents.push(data.selected);
console.log(res.data.selected);
console.log(res.data.selected.Id);
@@ -226,12 +228,16 @@ export class FileService {
"msg": "",
"attachments": [{
"title": res.data.selected.Assunto,
"text": res.data.selected.DocTypeDesc,
"description": res.data.selected.DocTypeDesc,
"title_link": url_no_options,
"title_link_download": true,
"thumb_url": "https://static.ichimura.ed.jp/uploads/2017/10/pdf-icon.png",
//"thumb_url": "assets/images/webtrix-logo.png",
"message_link": url_no_options,
}]
}],
"file":{
"name": res.data.selected.Assunto,
"type": "application/webtrix"
}
}
}
this.chatService.sendMessage(body).subscribe(res=> {
@@ -240,7 +246,7 @@ export class FileService {
},(error) => {
loader.remove();
});
loader.remove();
}
});
}