This commit is contained in:
Peter Maquiran
2023-08-03 11:37:35 +01:00
parent 535c70f5bb
commit 9ca9ee9245
7 changed files with 55 additions and 66 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
<ion-label style="margin-bottom: 2px;" class="overflow-visible font-12-em">Agenda</ion-label>
</ion-tab-button>
<ion-tab-button *ngIf="p.userPermission([permissionList.Gabinete.access])" (click)="goto('/home/gabinete-digital')" [class.active]="ActiveTabService.pages.gabinete">
<ion-tab-button *ngIf="p.userPermission([permissionList.Gabinete.access])" (click)="goto('/home/gabinete-digital')" class="cypress-gabinete-tab" [class.active]="ActiveTabService.pages.gabinete">
<!-- <ion-icon name="file-tray-stacked"></ion-icon> -->
<ion-icon *ngIf="!ActiveTabService.pages.gabinete" class="nav-icon font-30-em" src="assets/images/icons-nav-gabinete-inactive.svg"></ion-icon>
<ion-icon *ngIf="ActiveTabService.pages.gabinete" class="nav-icon font-30-em" src="assets/images/nav-hover/icons-nav-gabinete-active.svg"></ion-icon>
@@ -591,7 +591,7 @@
<!-- List -->
<div *ngIf="!p.userPermission([p.permissionList.Gabinete.pr_tasks])"
[class.active]="selectedElement == 'Dispatches'"
class="box-hover exp-card d-flex flex-column justify-center"
class="box-hover exp-card d-flex flex-column justify-center cypress-despacho-item"
(click)="openDespachosPage(); selectedElement='Dispatches'">
<div class="d-flex justify-center">
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "
+2 -2
View File
@@ -20,11 +20,11 @@
<form class="form">
<p class="form-label">Email</p>
<ion-item class="form-input">
<ion-input type="text" [(ngModel)]="username" name="input-username"></ion-input>
<ion-input class="cy-email" type="text" [(ngModel)]="username" name="input-username"></ion-input>
</ion-item>
<p class="form-label">Palavra-passe</p>
<ion-item class="form-input">
<ion-input (keyup.enter)="Login()" [type]="showPassword ? 'text' : 'password' " [(ngModel)]="password" name="input-password" ></ion-input>
<ion-input class="cy-password" (keyup.enter)="Login()" [type]="showPassword ? 'text' : 'password' " [(ngModel)]="password" name="input-password" ></ion-input>
<div (click)="togglePassword()">
<ion-icon slot="end" [name]="passwordIcon" ></ion-icon>
</div>
+1 -1
View File
@@ -139,7 +139,7 @@ export class LoginPage implements OnInit {
}
this.changeProfileService.runLogin();
this.getToken();
// this.getToken();
SessionStore.setInativity(true);
this.goback();
+43 -54
View File
@@ -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;
@@ -501,7 +501,7 @@ export class SearchPage implements OnInit {
}
});
this.search.searchForDoc(this.searchSubject, searchDocumentDate, this.searchSender
this.search.basicSearch(this.searchSubject, searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '361').subscribe(res => {
res.Categories.forEach( e => {
@@ -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)
});
@@ -39,12 +39,12 @@
<div>
<div class="d-flex" (click)="reorderList('old')" *ngIf="ordinance == 'recent' ">
<div class="d-flex cypress-list-order" (click)="reorderList('old')" *ngIf="ordinance == 'recent' ">
<ion-icon class="mr-10 font-25" src="assets/images/theme/gov/crescente.svg" ></ion-icon>
</div>
<div class="d-flex" (click)="reorderList('recent')" *ngIf="ordinance != 'recent' ">
<div class="d-flex cypress-list-order" (click)="reorderList('recent')" *ngIf="ordinance != 'recent' ">
<ion-icon class="mr-10 font-25" src="assets/images/theme/gov/decrescente.svg" ></ion-icon>
</div>
</div>
+5 -5
View File
@@ -1,12 +1,12 @@
export let versionData = {
"shortSHA": "9d1d4783d",
"SHA": "9d1d4783dbfd793c980170a4ab4e0c0e00686d00",
"shortSHA": "535c70f5b",
"SHA": "535c70f5bb4488668145b9c2eda3a2fa4dcc39f9",
"branch": "developer",
"lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Mon Jul 31 14:54:10 2023 +0100'",
"lastCommitTime": "'Mon Jul 31 16:34:12 2023 +0100'",
"lastCommitMessage": "fix",
"lastCommitNumber": "5124",
"lastCommitNumber": "5125",
"change": "",
"changeStatus": "On branch developer\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html\n\tmodified: src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.scss\n\tmodified: src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.ts\n\tmodified: src/app/shared/agenda/approve-event/approve-event.page.html",
"changeStatus": "On branch developer\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\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/login/login.page.ts\n\tmodified: src/app/pages/search/search.page.ts\n\tmodified: src/app/shared/gabinete-digital/despachos/despachos.page.html",
"changeAuthor": "peter.maquiran"
}