This commit is contained in:
tiago.kayaya
2021-10-09 16:41:18 +01:00
parent ef86d2b4bc
commit 98619e625b
3 changed files with 93 additions and 12 deletions
+9 -1
View File
@@ -267,6 +267,8 @@ export class FileService {
modal.onDidDismiss().then(async res=>{
const data = res.data;
alert('HERE')
if(data.selected){
const loader = this.toastService.loading();
@@ -275,6 +277,10 @@ export class FileService {
console.log(res.data.selected.Id);
console.log(res.data.selected.ApplicationType);
console.log('AQUIIIII');
alert('HERE 2')
let url = await this.processesService.GetDocumentUrl(res.data.selected.Id, res.data.selected.ApplicationType).toPromise();
let url_no_options: string = url.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
console.log(url_no_options);
@@ -296,7 +302,9 @@ export class FileService {
}],
"file":{
"name": res.data.selected.Assunto,
"type": "application/webtrix"
"type": "application/webtrix",
"ApplicationId": res.data.selected.ApplicationType,
"DocId": res.data.selected.Id,
}
}
}