mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix notification
This commit is contained in:
@@ -108,7 +108,7 @@ export class AgendaDataRepositoryService {
|
||||
|
||||
}
|
||||
|
||||
async searchEvent(queryParameters: {value}, tracing?: TracingType) {
|
||||
async searchEvent(queryParameters: {value, status}, tracing?: TracingType) {
|
||||
const result = await this.agendaDataService.searchEvent(queryParameters)
|
||||
return result.map( response => {
|
||||
APINODReturn(EventListDataOutputDTOSchema, response, 'get/Events', tracing)
|
||||
|
||||
@@ -74,7 +74,7 @@ export class AgendaDataService {
|
||||
return this.http.get<any>(`${this.baseUrl}/Events`, { params });
|
||||
}
|
||||
|
||||
searchEvent(queryParameter: {value}) {
|
||||
searchEvent(queryParameter: {value, status}) {
|
||||
return this.httpService.get<EventListOutputDTO>(`${this.baseUrl}/Events`, queryParameter);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ export class EventMapper {
|
||||
// "RoleDescription": null,
|
||||
// "RoleId": 0
|
||||
})),
|
||||
"Status": status,
|
||||
"IsMeeting": category,
|
||||
"IsRecurring": dto.isRecurring,
|
||||
"IsAllDayEvent": dto.isAllDayEvent,
|
||||
|
||||
@@ -79,6 +79,13 @@ export class EventToApproveDetailsMapper {
|
||||
|
||||
|
||||
|
||||
let status;
|
||||
if(dto.status == EEventStatus.Pending) {
|
||||
status = 'Pending'
|
||||
} else if(dto.status == EEventStatus.Revision) {
|
||||
status = 'Revision'
|
||||
}
|
||||
|
||||
return {
|
||||
"owner": dto.owner,
|
||||
"serialNumber": dto.id,
|
||||
@@ -119,7 +126,7 @@ export class EventToApproveDetailsMapper {
|
||||
// "MDName": "Eduardo Vilarinho",
|
||||
// "MDEmail": "evilarinho@gabinetedigital.local",
|
||||
// "OriginatorComments": "",
|
||||
"Status": "Active",
|
||||
"Status": status,
|
||||
"TimeZone": getTextInsideParentheses(new Date(dto.startDate)+ ''),
|
||||
"Agenda": category ,
|
||||
"EventType": dto.type,
|
||||
|
||||
Reference in New Issue
Block a user