This commit is contained in:
tiago.kayaya
2021-04-05 14:41:01 +01:00
parent 356732e919
commit 03057602d1
3 changed files with 12 additions and 7 deletions
@@ -59,15 +59,15 @@
</ion-label> </ion-label>
</ion-item> </ion-item>
</div> </div>
<h5>Detalhes</h5> <h5>Detalhes11</h5>
<ion-item class="ion-no-margin ion-no-padding"> <ion-item class="ion-no-margin ion-no-padding">
<textarea disabled class="width-100" [innerHTML]="loadedEvent.Body.Text" rows="6"></textarea> <textarea disabled class="width-100" [innerHTML]="loadedEvent.Body.Text" rows="6"></textarea>
</ion-item> </ion-item>
</div> </div>
<div *ngIf="loadedAttachments" class="bottom-content"> <div *ngIf="loadedAttachments" class="bottom-content width-100">
<ion-list> <ion-list>
<h3>Documentos Anexados</h3> <h5>Documentos Anexados</h5>
<ion-item class="ion-no-margin ion-no-padding"> <ion-item class="ion-no-margin ion-no-padding">
<ion-label *ngFor="let attach of loadedAttachments" <ion-label *ngFor="let attach of loadedAttachments"
(click)="viewDocument()"> (click)="viewDocument()">
@@ -162,7 +162,6 @@ ion-menu{
} }
.bottom-content{ .bottom-content{
width: 360px;
margin: 0 auto; margin: 0 auto;
.bottom-content h3{ .bottom-content h3{
@@ -8,6 +8,7 @@ import { EventsService } from 'src/app/services/events.service';
import { Event } from '../../../models/event.model'; import { Event } from '../../../models/event.model';
import { EditEventPage } from '../edit-event/edit-event.page'; import { EditEventPage } from '../edit-event/edit-event.page';
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx'; import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
import { ProcessesService } from 'src/app/services/processes.service';
@Component({ @Component({
selector: 'app-view-event', selector: 'app-view-event',
@@ -41,6 +42,7 @@ export class ViewEventPage implements OnInit {
private attachmentsService: AttachmentsService, private attachmentsService: AttachmentsService,
public alertController: AlertController, public alertController: AlertController,
private iab: InAppBrowser, private iab: InAppBrowser,
private processes: ProcessesService,
) )
{ {
this.profile = this.navParams.get('profile'); this.profile = this.navParams.get('profile');
@@ -135,9 +137,13 @@ export class ViewEventPage implements OnInit {
viewDocument(){ viewDocument(){
const url: string = this.loadedAttachments.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1"); /* this.processes.GetDocumentUrl(this.task.DocId, this.task.FsId).subscribe(res=>{
const browser = this.iab.create(url,"_blank"); console.log(res);
browser.show(); const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
const browser = this.iab.create(url,"_blank");
browser.show();
}); */
} }
} }