mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
dont show empty message when the list is not empty
This commit is contained in:
@@ -520,7 +520,7 @@ export class SearchPage implements OnInit {
|
||||
this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '8').subscribe(res => {
|
||||
this.showLoader = true;
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
|
||||
@@ -569,7 +569,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '361').subscribe(res => {
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
|
||||
@@ -622,7 +622,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
this.search.basicSearch(this.searchSubject, searchDocumentDate, searchDocumentDateEnd, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '8').subscribe(res => {
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
res.Categories.forEach(e => {
|
||||
@@ -671,7 +671,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '361').subscribe(res => {
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
|
||||
@@ -733,7 +733,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '8').subscribe(res => {
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
|
||||
@@ -780,7 +780,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
this.search.basicSearch(this.searchSubject, searchDocumentDate, searchDocumentDateEnd, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '8').subscribe(res => {
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
|
||||
@@ -885,7 +885,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = true;
|
||||
this.search.basicSearchPublication(this.searchSubject, searchDocumentDate, searchDocumentDateEnd, this.searchSenderId
|
||||
, this.searchOrganicEntiryCode, this.searchDocTypeId, '386').subscribe(res => {
|
||||
if (!res.Categories.length) {
|
||||
if (!res.Categories.length && this.showSearchDocuments.length == 0) {
|
||||
this.searchResult = "Não encontramos o que procura";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user