mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
fix notification
This commit is contained in:
@@ -23,6 +23,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
||||
import { TracingType, XTracerAsync } from 'src/app/services/monitoring/opentelemetry/tracer';
|
||||
import { isHttpError } from 'src/app/services/http.service';
|
||||
import { ToastService } from 'src/app/services/toast.service';
|
||||
import { EEventFilterStatus } from 'src/app/services/Repositorys/Agenda/model/enums';
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
parse: {
|
||||
@@ -388,7 +389,7 @@ export class SearchPage implements OnInit {
|
||||
}
|
||||
|
||||
if (this.type == "Agenda") {
|
||||
|
||||
this.showLoader = true
|
||||
|
||||
|
||||
if (this.searchSubject.trim() == "" && searchDocumentDate == null && searchDocumentDateEnd == null && this.searchSenderId == null && this.searchOrganicEntiryCode == null && this.searchDocTypeId == null) {
|
||||
@@ -397,7 +398,11 @@ export class SearchPage implements OnInit {
|
||||
|
||||
} else {
|
||||
|
||||
const searchEvents = await this.agendaDataRepository.searchEvent({value: this.searchSubject.trim() }, tracing)
|
||||
const searchEvents = await this.agendaDataRepository.searchEvent({
|
||||
value: this.searchSubject.trim(),
|
||||
status: EEventFilterStatus.AllToCommunicate
|
||||
|
||||
}, tracing)
|
||||
if(searchEvents.isOk()) {
|
||||
|
||||
this.showDocuments = true;
|
||||
@@ -468,6 +473,8 @@ export class SearchPage implements OnInit {
|
||||
// // console.log(error)
|
||||
// });
|
||||
}
|
||||
|
||||
this.showLoader = false
|
||||
}
|
||||
else if (this.type == "AccoesPresidenciais & ArquivoDespachoElect" && this.eventAgenda == true) {
|
||||
this.showLoader = true;
|
||||
|
||||
Reference in New Issue
Block a user