Improve agenda

This commit is contained in:
Peter Maquiran
2021-10-07 16:57:21 +01:00
parent 7459df8c51
commit 42e76d5e54
2 changed files with 3 additions and 11 deletions
@@ -100,6 +100,7 @@
</li>
</ion-list>
</div>
</div>
</ion-content>
@@ -101,7 +101,7 @@ export class ViewEventPage implements OnInit {
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
}, (error)=> {
console.log('errer', )
// console.log('errer', )
this.viewEventDetailDismiss.emit({
type: 'close'
@@ -178,24 +178,18 @@ export class ViewEventPage implements OnInit {
async LoadDocumentDetails() {
const docId = this.loadedEvent.Attachments[ this.dicIndex].Id
const docId = this.loadedEvent.Attachments[ this.dicIndex].SourceId
const applicationId = this.loadedEvent.Attachments[ this.dicIndex].ApplicationId
console.log(this.loadedEvent.Attachments[ this.dicIndex])
this.processes.GetDocumentDetails(docId, applicationId).subscribe( async(res)=> {
alert('loads')
console.log(res);
this.LoadedDocument = res;
this.LoadedDocument.Subject = this.LoadedDocument.Assunto
let thedate = new Date(this.LoadedDocument.DateDispatch || this.LoadedDocument.DocDate);
console.log(res)
this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
let task: ExpedientTaskModalPageNavParamsTask
@@ -237,7 +231,6 @@ export class ViewEventPage implements OnInit {
this.task = task
console.log('this.task = task', this.task)
this.task = task
const popover = await this.popoverController.create({
@@ -258,11 +251,9 @@ export class ViewEventPage implements OnInit {
this.openExpedientActionsModal(res.data.taskAction)
} else {
console.log(res.data)
console.log('component not found')
}
});
});
}