diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html index 34b79c980..dac104c08 100644 --- a/src/app/home/home.page.html +++ b/src/app/home/home.page.html @@ -21,7 +21,7 @@ Agenda - + diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.html b/src/app/pages/gabinete-digital/gabinete-digital.page.html index f367f6994..be5e26a73 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.html +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.html @@ -591,7 +591,7 @@

Email

- +

Palavra-passe

- +
diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index f3518fbda..a3f795bab 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -111,12 +111,12 @@ export class SearchPage implements OnInit { if(this.type == null || this.type == undefined) { - if(this.currentPath == '/home/agenda') { + if(this.currentPath.includes('/home/agenda')) { this.type = "Agenda" - } else if (this.currentPath =='/home/gabinete-digital') { + } else if (this.currentPath.includes('/home/gabinete-digital')) { this.type = "AccoesPresidenciais & ArquivoDespachoElect" - } else if (this.currentPath == '/home/publications') { + } else if (this.currentPath.includes('/home/publications')) { this.type = "AccoesPresidenciais" } else { @@ -461,7 +461,7 @@ export class SearchPage implements OnInit { } else { let counter = 0; - this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSender + this.search.basicSearch(this.searchSubject, searchDocumentDate, this.searchSender ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res => { res.Categories.forEach( e => { e['Active'] = false; @@ -594,7 +594,7 @@ export class SearchPage implements OnInit { } else { let counter = 0; - this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSender + this.search.basicSearch(this.searchSubject, searchDocumentDate, this.searchSender ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{ res.Categories.forEach( e => { @@ -645,54 +645,50 @@ export class SearchPage implements OnInit { this.searchCategories = [] this.searchDocuments = [] - this.search.basicSearch(this.searchSubject, searchDocumentDate, this.searchSender - ,this.searchOrganicEntiry, this.searchDocTypeId, '386').subscribe(res=>{ + // this.search.basicSearchPublication(this.searchSubject, searchDocumentDate, this.searchSender + // ,this.searchOrganicEntiry, this.searchDocTypeId, '386').subscribe(res=>{ - res.Categories.forEach( e => { - e['Active'] = false; - if(!environment.presidential) { - e['Name'] = "Publicações" - } - }); + // res.Categories.forEach( e => { + // e['Active'] = false; + // e['Name'] = "Publicações" + // }); - // bind respose - for ( const a of res.Categories) { - this.searchCategories.push(a); - } + // // bind respose + // for ( const a of res.Categories) { + // this.searchCategories.push(a); + // } - for ( const a of this.sortArrayISODate(res.Documents)) { - if(!environment.presidential) { - a.DocTypeDesc = "Publicações" - } - this.searchDocuments.push(a); - } + // for ( const a of this.sortArrayISODate(res.Documents)) { + // a.DocTypeDesc = "Publicações" + // this.searchDocuments.push(a); + // } - this.reorderList(this.ordinance); + // this.reorderList(this.ordinance); - // hide show document - if(this.searchDocuments.length >= 1){ - this.showDocuments = true; - } else { - this.showDocuments = false - } + // // hide show document + // if(this.searchDocuments.length >= 1){ + // this.showDocuments = true; + // } else { + // this.showDocuments = false + // } - counter++; + // counter++; - if(counter ==2){ - this.showLoader = false; - } + // if(counter ==2){ + // this.showLoader = false; + // } - this.loadWordCloud(); - }, error => { - counter++; + // this.loadWordCloud(); + // }, error => { + // counter++; - if(counter == 2) { - this.showLoader = false; - } - this.searchResult = "Registo não encontrado" - console.log(error) - }); + // if(counter == 2) { + // this.showLoader = false; + // } + // this.searchResult = "Registo não encontrado" + // console.log(error) + // }); @@ -702,9 +698,7 @@ export class SearchPage implements OnInit { res.Categories.forEach( e => { e['Active'] = false; - if(!environment.presidential) { - e['Name'] = "Acções" - } + e['Name'] = "Acções" }); if(!environment.presidential) { @@ -717,10 +711,8 @@ export class SearchPage implements OnInit { for ( const a of this.sortArrayISODate(res.Documents)) { - if(!environment.presidential) { - a.DocTypeDesc = "Acções" - this.searchDocuments.push(a); - } + a.DocTypeDesc = "Acções" + this.searchDocuments.push(a); } this.reorderList(this.ordinance); @@ -734,16 +726,13 @@ export class SearchPage implements OnInit { counter++; - if(counter ==2) { - this.showLoader = false; - } + this.showLoader = false; this.loadWordCloud(); }, error => { counter++; - if(counter ==2) { - this.showLoader = false; - } + this.showLoader = false; + this.searchResult = "Registo não encontrado" console.log(error) }); diff --git a/src/app/shared/gabinete-digital/despachos/despachos.page.html b/src/app/shared/gabinete-digital/despachos/despachos.page.html index 69b388684..eb5ad14fb 100644 --- a/src/app/shared/gabinete-digital/despachos/despachos.page.html +++ b/src/app/shared/gabinete-digital/despachos/despachos.page.html @@ -39,12 +39,12 @@
-
+
-
+
diff --git a/version/git-version.ts b/version/git-version.ts index 85a3583ab..c5d30851b 100644 --- a/version/git-version.ts +++ b/version/git-version.ts @@ -1,12 +1,12 @@ export let versionData = { - "shortSHA": "c96aad213", - "SHA": "c96aad2136d71846600d94c92d4a2f82439a0e3c", + "shortSHA": "a05918788", + "SHA": "a0591878852492c56134ff984c8ce56a75329b28", "branch": "developer", "lastCommitAuthor": "'Eudes Inácio'", - "lastCommitTime": "'Mon Jul 31 16:58:36 2023 +0100'", - "lastCommitMessage": "pull made and remove time from notification erro", - "lastCommitNumber": "5133", + "lastCommitTime": "'Thu Aug 3 13:04:58 2023 +0100'", + "lastCommitMessage": "duplication of notification solved", + "lastCommitNumber": "5134", "change": "", - "changeStatus": "On branch developer\nYour branch is ahead of 'origin/developer' by 8 commits.\n (use \"git push\" to publish your local commits)\n\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/modals/profile/profile.page.ts\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/services/notifications.service.ts", + "changeStatus": "On branch developer\nYour branch and 'origin/developer' have diverged,\nand have 9 and 2 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/home/home.page.html\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/pages/login/login.page.html\n\tmodified: src/app/pages/search/search.page.ts\n\tmodified: src/app/shared/gabinete-digital/despachos/despachos.page.html", "changeAuthor": "eudes.inacio" } \ No newline at end of file