diff --git a/src/app/shared/agenda/edit-event/edit-event.page.ts b/src/app/shared/agenda/edit-event/edit-event.page.ts index 6b9f55c37..ee03a7ceb 100644 --- a/src/app/shared/agenda/edit-event/edit-event.page.ts +++ b/src/app/shared/agenda/edit-event/edit-event.page.ts @@ -122,6 +122,7 @@ export class EditEventPage implements OnInit { } this.initCalendarName = this.postEvent.CalendarName; + this.getRecurrenceTypes(); setTimeout(() => { @@ -469,43 +470,43 @@ export class EditEventPage implements OnInit { } - // async getDoc() { + async getDoc() { - // const modal = await this.modalController.create({ - // component: SearchPage, - // cssClass: 'modal-width-100-width-background modal', - // componentProps: { - // type: 'AccoesPresidenciais & ArquivoDespachoElect', - // showSearchInput: true, - // select: true, - // } - // }); - // await modal.present(); - // modal.onDidDismiss().then( async (res)=>{ - // if(res){ - // const data = res.data; + const modal = await this.modalController.create({ + component: SearchPage, + cssClass: 'modal-width-100-width-background modal', + componentProps: { + type: 'AccoesPresidenciais & ArquivoDespachoElect', + showSearchInput: true, + select: true, + } + }); + await modal.present(); + modal.onDidDismiss().then( async (res)=>{ + if(res){ + const data = res.data; - // const ApplicationIdDocumentToSave: any = { - // SourceName: data.selected.Assunto, - // ParentId: this.postEvent.EventId, - // SourceId: data.selected.Id, - // Stakeholders: data.selected.Stakeholders | data.selected.EntidadeOrganicaNome, - // ApplicationId: data.selected.ApplicationType.toString(), - // CreateDate: data.selected.Data, - // // needed to attach this document - // Id: 'add', - // SourceTitle: data.selected.Assunto, - // Source: '1', - // Link: '', - // SerialNumber: '', - // } + const ApplicationIdDocumentToSave: any = { + SourceName: data.selected.Assunto, + ParentId: this.postEvent.EventId, + SourceId: data.selected.Id, + Stakeholders: data.selected.Stakeholders | data.selected.EntidadeOrganicaNome, + ApplicationId: data.selected.ApplicationType.toString(), + CreateDate: data.selected.Data, + // needed to attach this document + Id: 'add', + SourceTitle: data.selected.Assunto, + Source: '1', + Link: '', + SerialNumber: '', + } - // this.loadedEventAttachments.push(ApplicationIdDocumentToSave) + this.loadedEventAttachments.push(ApplicationIdDocumentToSave) - // } - // }); - // } + } + }); + } } diff --git a/version/git-version.ts b/version/git-version.ts index a52a87ac8..a2c5a4dee 100644 --- a/version/git-version.ts +++ b/version/git-version.ts @@ -1,12 +1,12 @@ export let versionData = { - "shortSHA": "b136664c4", - "SHA": "b136664c480ec58453bd73b7a165d9cc597b2edd", + "shortSHA": "225e050df", + "SHA": "225e050df3b94b7ca25f6e08ff769783af8d24ea", "branch": "no_bug_movemente", "lastCommitAuthor": "'Peter Maquiran'", - "lastCommitTime": "'Tue Feb 14 11:07:13 2023 +0100'", - "lastCommitMessage": "Fix alignment", - "lastCommitNumber": "4781", + "lastCommitTime": "'Tue Feb 14 16:24:45 2023 +0100'", + "lastCommitMessage": "Improve", + "lastCommitNumber": "4782", "change": "", - "changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.html\n\tmodified: src/app/pages/gabinete-digital/expedientes-pr/expediente-pr/expediente-pr.page.html\n\tmodified: src/app/shared/agenda/edit-event/edit-event.page.ts\n\tmodified: src/app/shared/popover/opts-expediente-pr/opts-expediente-pr.page.html\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.html", + "changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/shared/agenda/edit-event/edit-event.page.ts", "changeAuthor": "peter.maquiran" } \ No newline at end of file