fix error

This commit is contained in:
Peter Maquiran
2023-02-14 16:28:27 +01:00
parent 225e050df3
commit 3b41314b65
2 changed files with 39 additions and 38 deletions
@@ -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)
// }
// });
// }
}
});
}
}
+6 -6
View File
@@ -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 <file>...\" 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 <file>...\" to unstage)\n\tmodified: src/app/shared/agenda/edit-event/edit-event.page.ts",
"changeAuthor": "peter.maquiran"
}