update create event from document

This commit is contained in:
Peter Maquiran
2023-08-20 22:00:23 +01:00
parent f6c911fc32
commit fdce8db602
6 changed files with 48 additions and 29 deletions
@@ -113,6 +113,17 @@ export class DocumentSetUpMeetingPage implements OnInit {
) {
this.loggeduser = SessionStore.user;
this.document = this.navParams.get('document')
if(Array.isArray(this.document)) {
this.attachments = this.document
} else {
this.attachments = [this.document]
}
this.document = []
this.subject = this.navParams.get('subject')
this.postData = new Event();
@@ -7,6 +7,7 @@ import { ProcessesService } from 'src/app/services/processes.service';
import { EventDetailsDocumentsOptionsPage } from 'src/app/shared/popover/event-details-documents-options/event-details-documents-options.page';
import { DocumentSetUpMeetingPage } from '../document-set-up-meeting/document-set-up-meeting.page';
import { AlertController, ModalController } from '@ionic/angular';
import { SearchList } from 'src/app/models/search-document';
@Component({
selector: 'app-view-document',
@@ -22,6 +23,7 @@ export class ViewDocumentPage implements OnInit {
task: ExpedientTaskModalPageNavParamsTask;
Document: any
loader = true
attachment: SearchList[] = [];
constructor(
private modalController: ModalController,
@@ -35,6 +37,7 @@ export class ViewDocumentPage implements OnInit {
this.docId = this.navParams.get('docId');
this.Document = this.navParams.get('Document')
this.task = this.navParams.get('task')
this.attachment = this.navParams.get('attachment')
if(!this.file.title) {
@@ -92,7 +95,8 @@ export class ViewDocumentPage implements OnInit {
componentProps: {
fulltask: this.task,
task: this.task,
content: ""
content: "",
Document:this.Document
}
});
await modal.present();
@@ -115,7 +119,7 @@ export class ViewDocumentPage implements OnInit {
}
async openBookMeetingModal() {
console.log('this.Document', this.Document)
let classs;
if( window.innerWidth < 701) {
classs = 'book-meeting-modal modal modal-desktop'