diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index ec132a02e..5439cd226 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -282,12 +282,6 @@ const routes = [ path: 'crop-image', loadChildren: () => import('./modals/crop-image/crop-image.module').then( m => m.CropImagePageModule) }, - { - path: 'edit-message', - loadChildren: () => import('./modals/edit-message/edit-message.module').then( m => m.EditMessagePageModule) - } - - /* path: 'chat', component: ChatPage diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts index c86dca641..39b260343 100644 --- a/src/app/home/home-routing.module.ts +++ b/src/app/home/home-routing.module.ts @@ -78,206 +78,206 @@ const routes: Routes = [ ], }, - { - path: 'agenda', - children: [ - { - path:'', - loadChildren: () => AgendaPageModule - }, - { - path:':eventId/:caller', - loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule), - }, - { - path: 'eventId/:caller', - loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule), - }, - { - path: 'edit-event', - loadChildren: () => import('../pages/agenda/edit-event/edit-event.module').then( m => m.EditEventPageModule) - }, - { - path: 'emend-message-modal', - loadChildren: () => import('../pages/gabinete-digital/event-list/approve-event-modal/approve-event-modal.module').then( m => m.ApproveEventModalPageModule) - }, - { - path: 'view-event', - loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule) - }, - { - path:'event-list', - children: [ - { - path:'', - loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule) - }, - { - path:'approve-event', - children : [ - { - path:':serialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule) - }, - ] - } - ] - }, - ], + // { + // path: 'agenda', + // children: [ + // { + // path:'', + // loadChildren: () => AgendaPageModule + // }, + // { + // path:':eventId/:caller', + // loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule), + // }, + // { + // path: 'eventId/:caller', + // loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule), + // }, + // { + // path: 'edit-event', + // loadChildren: () => import('../pages/agenda/edit-event/edit-event.module').then( m => m.EditEventPageModule) + // }, + // { + // path: 'emend-message-modal', + // loadChildren: () => import('../pages/gabinete-digital/event-list/approve-event-modal/approve-event-modal.module').then( m => m.ApproveEventModalPageModule) + // }, + // { + // path: 'view-event', + // loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule) + // }, + // { + // path:'event-list', + // children: [ + // { + // path:'', + // loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule) + // }, + // { + // path:'approve-event', + // children : [ + // { + // path:':serialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule) + // }, + // ] + // } + // ] + // }, + // ], - }, - { - path: 'gabinete-digital', - children: [ - { - path:'', - loadChildren: ()=> GabineteDigitalPageModule - }, - { - path:'expediente', - children: [ - { - path:'', - loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule) - }, - { - path:':SerialNumber', - loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule) - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule) - }, - { - path:'events/:eventId/:caller', - loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule), - }, - { - path:'expediente-task-modal', - loadChildren: ()=> import('../pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module').then(m => m.ExpedientTaskModalPageModule), - }, - ] - }, - { - path: 'expedientes-pr', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expedientes-pr.module').then(m => m.ExpedientesPrPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expediente-pr/expediente-pr.module').then(m => m.ExpedientePrPageModule), - }, - ] - }, - { - path: 'despachos', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/despachos/despachos.module').then(m => m.DespachosPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/despachos/despacho/despacho.module').then(m => m.DespachoPageModule), - }, - ] - }, - { - path: 'despachos-pr', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/despachos-pr/despachos-pr.module').then(m => m.DespachosPrPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.module').then(m => m.DespachoPrPageModule), - }, - ] - }, - { - path: 'pedidos', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/pedidos/pedidos.module').then(m => m.PedidosPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/pedidos/pedido/pedido.module').then(m => m.PedidoPageModule), - }, - ] - }, - { - path: 'diplomas', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/diplomas/diplomas.module').then(m => m.DiplomasPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/diplomas/diploma/diploma.module').then(m => m.DiplomaPageModule), - }, - ] - }, - { - path: 'diplomas-assinar', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then(m => m.DiplomasAssinarPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.module').then(m => m.DiplomaAssinarPageModule), - }, - ] - }, - { - path: 'diplomas-gerar', - children: [ - { - path: '', - loadChildren: ()=> import('../pages/gabinete-digital/diplomas-gerar/diplomas-gerar.module').then(m => m.DiplomasGerarPageModule), - }, - { - path:':SerialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/diplomas-gerar/diplomas-gerar/diplomas-gerar-routing.module').then(m => m.DiplomasGerarPageRoutingModule), - }, - ] - }, - { - path:'event-list', - children: [ - { - path:'', - loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule) - }, - { - path:'approve-event', - children : [ - { - path:':serialNumber/:caller', - loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule) - }, - ] - } - ] - }, - { - path: 'events-to-approve', - children: [ - { - path: '', - loadChildren: ()=> import('../shared/gabinete-digital/edit-event-to-approve/edit-event.module') - } - ] - } - ], - }, + // }, + // { + // path: 'gabinete-digital', + // children: [ + // { + // path:'', + // loadChildren: ()=> GabineteDigitalPageModule + // }, + // { + // path:'expediente', + // children: [ + // { + // path:'', + // loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule) + // }, + // { + // path:':SerialNumber', + // loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule) + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule) + // }, + // { + // path:'events/:eventId/:caller', + // loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule), + // }, + // { + // path:'expediente-task-modal', + // loadChildren: ()=> import('../pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module').then(m => m.ExpedientTaskModalPageModule), + // }, + // ] + // }, + // { + // path: 'expedientes-pr', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expedientes-pr.module').then(m => m.ExpedientesPrPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expediente-pr/expediente-pr.module').then(m => m.ExpedientePrPageModule), + // }, + // ] + // }, + // { + // path: 'despachos', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/despachos/despachos.module').then(m => m.DespachosPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/despachos/despacho/despacho.module').then(m => m.DespachoPageModule), + // }, + // ] + // }, + // { + // path: 'despachos-pr', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/despachos-pr/despachos-pr.module').then(m => m.DespachosPrPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.module').then(m => m.DespachoPrPageModule), + // }, + // ] + // }, + // { + // path: 'pedidos', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/pedidos/pedidos.module').then(m => m.PedidosPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/pedidos/pedido/pedido.module').then(m => m.PedidoPageModule), + // }, + // ] + // }, + // { + // path: 'diplomas', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/diplomas/diplomas.module').then(m => m.DiplomasPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/diplomas/diploma/diploma.module').then(m => m.DiplomaPageModule), + // }, + // ] + // }, + // { + // path: 'diplomas-assinar', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then(m => m.DiplomasAssinarPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.module').then(m => m.DiplomaAssinarPageModule), + // }, + // ] + // }, + // { + // path: 'diplomas-gerar', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../pages/gabinete-digital/diplomas-gerar/diplomas-gerar.module').then(m => m.DiplomasGerarPageModule), + // }, + // { + // path:':SerialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/diplomas-gerar/diplomas-gerar/diplomas-gerar-routing.module').then(m => m.DiplomasGerarPageRoutingModule), + // }, + // ] + // }, + // { + // path:'event-list', + // children: [ + // { + // path:'', + // loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule) + // }, + // { + // path:'approve-event', + // children : [ + // { + // path:':serialNumber/:caller', + // loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule) + // }, + // ] + // } + // ] + // }, + // { + // path: 'events-to-approve', + // children: [ + // { + // path: '', + // loadChildren: ()=> import('../shared/gabinete-digital/edit-event-to-approve/edit-event.module') + // } + // ] + // } + // ], + // }, { path: 'search', children: [ @@ -288,37 +288,37 @@ const routes: Routes = [ ], }, - { - path: 'publications', - children: [ - { - path:'', - loadChildren: ()=> PublicationsPageModule - }, - { - path:':folderId', - loadChildren: ()=> import('../pages/publications/view-publications/view-publications.module').then(m => m.ViewPublicationsPageModule) - }, - { - path:'view-publications', - children: [ - { - path:':folderId/:publicationId', - loadChildren: ()=> import('../pages/publications/view-publications/publication-detail/publication-detail.module').then(m => m.PublicationDetailPageModule) - }, - ] - }, - { - path:'new-publication', - loadChildren: ()=> import('../shared/publication/new-publication/new-publication.module').then(m => m.NewPublicationPageModule) - }, - { - path: 'request-options', - loadChildren: () => import('../shared/popover/request-options/request-options.module').then( m => m.RequestOptionsPageModule) - }, - ], + // { + // path: 'publications', + // children: [ + // { + // path:'', + // loadChildren: ()=> PublicationsPageModule + // }, + // { + // path:':folderId', + // loadChildren: ()=> import('../pages/publications/view-publications/view-publications.module').then(m => m.ViewPublicationsPageModule) + // }, + // { + // path:'view-publications', + // children: [ + // { + // path:':folderId/:publicationId', + // loadChildren: ()=> import('../pages/publications/view-publications/publication-detail/publication-detail.module').then(m => m.PublicationDetailPageModule) + // }, + // ] + // }, + // { + // path:'new-publication', + // loadChildren: ()=> import('../shared/publication/new-publication/new-publication.module').then(m => m.NewPublicationPageModule) + // }, + // { + // path: 'request-options', + // loadChildren: () => import('../shared/popover/request-options/request-options.module').then( m => m.RequestOptionsPageModule) + // }, + // ], - }, + // }, { path: 'chat', children: [ diff --git a/src/app/ui/chat/chat-routing.module.ts b/src/app/ui/chat/chat-routing.module.ts index 438d2bd3b..f36c1ab6a 100644 --- a/src/app/ui/chat/chat-routing.module.ts +++ b/src/app/ui/chat/chat-routing.module.ts @@ -64,6 +64,10 @@ const routes: Routes = [ path: 'room-info', loadChildren: () => import('./modal/room-info/room-info.module').then( m => m.RoomInfoPageModule) }, + { + path: 'edit-message', + loadChildren: () => import('./modal/edit-message/edit-message.module').then( m => m.EditMessagePageModule) + } ]; @NgModule({ diff --git a/src/app/ui/chat/component/messages/messages.page.html b/src/app/ui/chat/component/messages/messages.page.html index fd801243d..015cdbff9 100644 --- a/src/app/ui/chat/component/messages/messages.page.html +++ b/src/app/ui/chat/component/messages/messages.page.html @@ -44,7 +44,7 @@