mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
update create event from document
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user