mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -245,14 +245,16 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
||||
})
|
||||
}
|
||||
|
||||
viewDocument(file:any, url?:string){
|
||||
if(file.type == "application/img"){
|
||||
console.log(file);
|
||||
async viewDocument(msg:any, url?:string){
|
||||
if(msg.file.type == "application/img"){
|
||||
let response:any = await this.fileService.getFile(msg.file.guid).toPromise();
|
||||
console.log(response);
|
||||
|
||||
//this.openPreview(msg);
|
||||
|
||||
//this.fileService.getFile().toPromise();
|
||||
}
|
||||
else if(file.type == "application/webtrix") {
|
||||
this.openViewDocumentModal(file);
|
||||
else if(msg.file.type == "application/webtrix") {
|
||||
this.openViewDocumentModal(msg.file);
|
||||
}
|
||||
else{
|
||||
let fullUrl;
|
||||
|
||||
Reference in New Issue
Block a user