Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest changes from dev to release 1201 #439

Merged
merged 148 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
a3893d6
generate vid
anup-nehe Jun 21, 2023
7e82f27
Merge remote-tracking branch 'upstream/develop' into develop
anup-nehe Jun 21, 2023
903f36b
Merge branch 'develop' of https://github.com/mosip/resident-ui into d…
aranaravi Jun 21, 2023
0808b36
Merge branch 'develop' of https://github.com/mosip/resident-ui into d…
aranaravi Jun 22, 2023
c8e0a52
Merge branch 'develop' of https://github.com/mosip/resident-ui into d…
aranaravi Jun 26, 2023
cc210a6
resolved in progress status
Madhuravas Jun 26, 2023
6341731
Merge pull request #370 from Madhuravas/develop
aranaravi Jun 26, 2023
532d142
added responsive for grievance form page
Madhuravas Jun 26, 2023
069b705
Merge pull request #371 from Madhuravas/develop
aranaravi Jun 26, 2023
19bba62
removed duplicate code
Madhuravas Jun 27, 2023
0720e93
Merge pull request #372 from Madhuravas/develop
aranaravi Jun 27, 2023
df1f35d
break point service added
Madhuravas Jun 27, 2023
1acc22a
Merge pull request #373 from Madhuravas/develop
aranaravi Jun 27, 2023
2a4341e
added mobile responsive for view history page
Madhuravas Jun 27, 2023
b0e6148
Merge pull request #374 from Madhuravas/develop
aranaravi Jun 27, 2023
9ab6bc1
Using break point service in all pages
Madhuravas Jun 28, 2023
e6f10ef
Merge branch 'develop' into develop
Madhuravas Jun 28, 2023
012ae45
Merge pull request #375 from Madhuravas/develop
aranaravi Jun 28, 2023
af78880
resolved sonar issue
Madhuravas Jun 28, 2023
fcaeacc
Merge branch 'develop' of https://github.com/Madhuravas/resident-ui i…
Madhuravas Jun 28, 2023
9a509d8
Merge pull request #376 from Madhuravas/develop
aranaravi Jun 28, 2023
ad72b78
fixed responsive issue for header
Madhuravas Jun 28, 2023
386cacd
Merge pull request #377 from Madhuravas/develop
aranaravi Jun 28, 2023
e32d998
Deleting unused files and folder
aranaravi Jun 28, 2023
0780ad3
Merge pull request #378 from aranaravi/develop
aranaravi Jun 28, 2023
44652d7
removed break point service
Madhuravas Jun 28, 2023
9f80695
Merge pull request #379 from Madhuravas/develop
aranaravi Jun 28, 2023
e63e642
id are added for e-signet page
anup-nehe Jun 30, 2023
9506c08
Merge remote-tracking branch 'upstream/develop' into develop
anup-nehe Jun 30, 2023
f578f59
Merge pull request #380 from anup-nehe/develop
aranaravi Jun 30, 2023
b8ff1c4
added break point service
Madhuravas Jun 30, 2023
9248af0
Merge pull request #381 from Madhuravas/develop
aranaravi Jun 30, 2023
730402d
degugging sonar duplications
Madhuravas Jun 30, 2023
6e16a7a
Merge pull request #382 from Madhuravas/develop
aranaravi Jun 30, 2023
db912ab
Sonar quality get fixes
aranaravi Jun 30, 2023
3876440
Merge pull request #383 from aranaravi/develop
aranaravi Jun 30, 2023
bb3c84e
Sonar quality get related fixes
aranaravi Jun 30, 2023
cc2c5b4
Merge pull request #384 from aranaravi/develop
aranaravi Jun 30, 2023
9477428
debugging sonar duplications
Madhuravas Jun 30, 2023
0a1dbd2
Merge pull request #385 from Madhuravas/develop
aranaravi Jun 30, 2023
17f4c20
fixed mobile view alignment in update my data page
Madhuravas Jul 3, 2023
1aa8904
Merge pull request #386 from Madhuravas/develop
aranaravi Jul 3, 2023
0467182
firefox font issue
Madhuravas Jul 4, 2023
f6bb184
Merge pull request #387 from Madhuravas/develop
aranaravi Jul 4, 2023
c44ed78
firefox font issue
Madhuravas Jul 4, 2023
a5aeaa2
Merge pull request #388 from Madhuravas/develop
aranaravi Jul 4, 2023
8e7280f
firefox alignment issues
Madhuravas Jul 4, 2023
60fdb37
Merge pull request #389 from Madhuravas/develop
aranaravi Jul 4, 2023
a8b6c5b
header notification count alignment issue
Madhuravas Jul 5, 2023
92cbe98
Merge pull request #390 from Madhuravas/develop
aranaravi Jul 5, 2023
1f12368
added arabic language
Madhuravas Jul 10, 2023
a0410d0
Merge pull request #391 from Madhuravas/develop
aranaravi Jul 10, 2023
d3dcf51
Added i18n french language
Madhuravas Jul 12, 2023
35559d1
Merge pull request #392 from Madhuravas/develop
aranaravi Jul 12, 2023
67e44e4
[28241] Added docker build in push_trigger.yml file
Prafulrakhade Jul 13, 2023
ef4797f
Merge pull request #393 from Prafulrakhade/develop
aranaravi Jul 14, 2023
0bb1e79
MOSIP-21285 added multi languages
Madhuravas Jul 18, 2023
9c63816
Merge pull request #395 from Madhuravas/develop
aranaravi Jul 18, 2023
6a8da51
MOSIP-28542 testing redirect
Madhuravas Jul 20, 2023
41f9ba7
Firefox zoom option related issue fixes
aranaravi Jul 24, 2023
faf9bd5
Merge pull request #397 from Madhuravas/develop
aranaravi Jul 24, 2023
78a4295
Firefox zoom option related issue fixes
aranaravi Jul 24, 2023
2e364f3
Merge pull request #398 from aranaravi/develop
aranaravi Jul 24, 2023
dcc514e
MOSIP-28546
anup-nehe Jul 25, 2023
6471dd1
Merge remote-tracking branch 'upstream/develop' into develop
anup-nehe Jul 25, 2023
9966e93
Merge pull request #399 from anup-nehe/develop
aranaravi Jul 25, 2023
7ff2d12
MOSIP-28550 added all the missed labels with multi languages
Madhuravas Jul 25, 2023
ea17893
Merge pull request #400 from Madhuravas/develop
aranaravi Jul 25, 2023
fe256e0
MOSIP-28550
Madhuravas Jul 26, 2023
1c7c11f
Merge pull request #401 from Madhuravas/develop
aranaravi Jul 26, 2023
21678da
MOSIP-28609 fixed breadcrumb issue
Madhuravas Jul 27, 2023
53469c4
Merge pull request #402 from Madhuravas/develop
aranaravi Jul 27, 2023
f5f566d
MOSIP-28550 changed missed labels
Madhuravas Jul 27, 2023
bb163a6
Merge pull request #403 from Madhuravas/develop
aranaravi Jul 27, 2023
0bf0fd3
MOSIP-28596 added id's for view history buttons
Madhuravas Jul 28, 2023
fb4beeb
MOSIP-28610 resolved button disable
Madhuravas Jul 28, 2023
109ec3b
Merge pull request #404 from Madhuravas/develop
aranaravi Jul 28, 2023
1cdb5ab
Sending the language code to esignet and removed update demographic u…
aranaravi Jul 31, 2023
ac320a7
Merge pull request #405 from aranaravi/develop
aranaravi Jul 31, 2023
a579039
MOSIP-28550 added multi language for captcha
Madhuravas Jul 31, 2023
924778c
Merge branch 'develop' of https://github.com/mosip/resident-ui into d…
Madhuravas Jul 31, 2023
b821b84
Merge pull request #406 from Madhuravas/develop
aranaravi Jul 31, 2023
c882825
changed the language code to two char
aranaravi Aug 2, 2023
5806685
Merge pull request #407 from aranaravi/develop
aranaravi Aug 2, 2023
a887677
Added the update my UIN link back
aranaravi Aug 2, 2023
05e8389
Merge pull request #408 from aranaravi/develop
aranaravi Aug 2, 2023
de22eea
MOSIP-28632 changed flow of upload document
Madhuravas Aug 2, 2023
3f27716
Merge pull request #409 from Madhuravas/develop
aranaravi Aug 2, 2023
35a5df7
MOSIP-28756 new Hierarchy level address resolved with multi languages
Madhuravas Aug 2, 2023
fb2c6b2
Merge pull request #410 from Madhuravas/develop
aranaravi Aug 2, 2023
d61dd77
MOSIP-28766 added ok button for login and logout with multi languages
Madhuravas Aug 3, 2023
4d20b46
Merge pull request #411 from Madhuravas/develop
aranaravi Aug 3, 2023
b65156e
MOSIP-28549 event status changes for multi lingual support from UI
Madhuravas Aug 3, 2023
715eee0
MOSIP-28549 event status changes for multi lingual support from UI
Madhuravas Aug 3, 2023
6e87a9b
Merge pull request #412 from Madhuravas/develop
aranaravi Aug 3, 2023
1c9bfa9
Firefox font related issues and reload taken to dashboard related fixes
aranaravi Aug 3, 2023
4e67393
Merge pull request #413 from aranaravi/develop
aranaravi Aug 3, 2023
8e059b3
MOSIP-28611 taking response object directly from API
Madhuravas Aug 3, 2023
6dab37e
Merge pull request #414 from Madhuravas/develop
aranaravi Aug 3, 2023
8e52052
MOSIP-28632 changed to upload one document for update data
Madhuravas Aug 4, 2023
8834b32
Merge pull request #415 from Madhuravas/develop
aranaravi Aug 4, 2023
b615197
MOSIP-28698 removed API calling and notification will come
Madhuravas Aug 7, 2023
7620c73
Merge pull request #416 from Madhuravas/develop
aranaravi Aug 7, 2023
8fbb77a
Firefox font rendering corrections
aranaravi Aug 8, 2023
6b7ffcb
Merge pull request #417 from aranaravi/develop
aranaravi Aug 8, 2023
67874dc
MOSIP-28824 added link for registration centers
Madhuravas Aug 8, 2023
953aba8
Merge pull request #418 from Madhuravas/develop
aranaravi Aug 8, 2023
c3d74c1
MOSIP-25728 fixed over flow issue
Madhuravas Aug 9, 2023
6f930ef
Merge pull request #419 from Madhuravas/develop
aranaravi Aug 9, 2023
505d445
MOSIP-25728 showing correct data issue
Madhuravas Aug 9, 2023
c6ada16
Merge pull request #420 from Madhuravas/develop
aranaravi Aug 9, 2023
a8d7798
removed unused API calling
Madhuravas Aug 9, 2023
7505368
Merge pull request #421 from Madhuravas/develop
aranaravi Aug 9, 2023
f67ae24
MOSIP-28542 redirecting to login page
Madhuravas Aug 10, 2023
f4123cd
MOSIP-28542 changed redirect URl
Madhuravas Aug 10, 2023
7a37d45
Merge pull request #422 from Madhuravas/develop
aranaravi Aug 10, 2023
48389b7
MOSIP-28645 resolved to upload address after select all address values
Madhuravas Aug 11, 2023
ef2fd6d
Merge pull request #423 from Madhuravas/develop
aranaravi Aug 11, 2023
1930fcf
MOSIP-25728 resolved over flow issue
Madhuravas Aug 16, 2023
0e697b5
Merge pull request #424 from Madhuravas/develop
aranaravi Aug 16, 2023
b63f952
MOSIP-28645 showing messages after select one item
Madhuravas Aug 16, 2023
ef9d52a
Merge pull request #425 from Madhuravas/develop
aranaravi Aug 16, 2023
9ec3232
Fixed popup issues
Madhuravas Aug 16, 2023
50d6869
Merge pull request #426 from Madhuravas/develop
aranaravi Aug 16, 2023
92955e4
disabled dropdown until select before value
Madhuravas Aug 17, 2023
215a03c
Merge pull request #427 from Madhuravas/develop
aranaravi Aug 17, 2023
635ef7c
Testing for redirect error page
Madhuravas Aug 17, 2023
4f7b093
Merge pull request #428 from Madhuravas/develop
aranaravi Aug 17, 2023
eeb6468
MOSIP-28542 handling error for invalid transaction
Madhuravas Aug 18, 2023
ffd721c
Merge pull request #429 from Madhuravas/develop
aranaravi Aug 18, 2023
fcc3da4
redirecting to dashboard if resident session expire
Madhuravas Aug 18, 2023
de02f80
Merge pull request #430 from Madhuravas/develop
aranaravi Aug 18, 2023
f0a6c94
added multi language labels in error page
Madhuravas Aug 18, 2023
92a297e
Merge pull request #431 from Madhuravas/develop
aranaravi Aug 18, 2023
fc65a94
Removed the update my data link from UI
aranaravi Aug 21, 2023
b7eebbc
Merge pull request #432 from aranaravi/develop
aranaravi Aug 21, 2023
01164e7
changed preview design in share with partner page
Madhuravas Aug 21, 2023
05a0e8e
Merge pull request #433 from Madhuravas/develop
aranaravi Aug 21, 2023
a1b005e
changed preview design in personalised card page
Madhuravas Aug 21, 2023
16b8b25
Merge pull request #434 from Madhuravas/develop
aranaravi Aug 21, 2023
6e9d84b
Login redirection has been moved to version v2
aranaravi Aug 22, 2023
065fb66
Merge pull request #435 from aranaravi/develop
aranaravi Aug 22, 2023
807138d
Fixed alignemnt breaking issues
Madhuravas Aug 22, 2023
966cdf6
Merge pull request #436 from Madhuravas/develop
aranaravi Aug 22, 2023
5bf6faa
removed redirect when token expire
Madhuravas Aug 22, 2023
7b44a65
Merge pull request #437 from Madhuravas/develop
aranaravi Aug 22, 2023
4a098fd
Changed the download pdf template layout
aranaravi Aug 22, 2023
42ea749
Merge pull request #438 from aranaravi/develop
aranaravi Aug 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
- name: Build image
run: |
cd "./${{env.SERVICE_LOCATION}}"
docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
# docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}

- name: Log into registry
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
Expand Down
3 changes: 2 additions & 1 deletion resident-ui/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const routes: Routes = [
{ path: 'regcenter', loadChildren: 'src/app/feature/booking/booking.module#BookingModule'},
{ path: 'verify', loadChildren:'src/app/feature/verify/verify.module#VerifyModule'},
{ path: 'uinservices', loadChildren:'src/app/feature/uinservices/uinservices.module#UinservicesModule'},
{ path:'downloadMyUin', loadChildren:'src/app/feature/downloaduin/downloaduin.module#DownloadUinModule'}
{ path:'downloadMyUin', loadChildren:'src/app/feature/downloaduin/downloaduin.module#DownloadUinModule'},
{path:'error', loadChildren:'src/app/feature/error/error.module#ErrorModule'}
];

@NgModule({
Expand Down
19 changes: 17 additions & 2 deletions resident-ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class AppComponent {
title = 'resident-ui';
subscriptions: Subscription[] = [];
previousUrl: string;
primaryLangCode: string = localStorage.getItem("langCode");
sitealignment;

constructor(
private appConfigService: AppConfigService,
Expand All @@ -28,7 +30,13 @@ export class AppComponent {
private dataStorageService: DataStorageService
) {
this.appConfigService.getConfig();

if (this.primaryLangCode === "ara") {
localStorage.setItem('direction','rtl')
}else{
localStorage.setItem('direction','ltr')
}
this.sitealignment = localStorage.getItem('direction');
document.body.dir = this.sitealignment;
}

// @HostListener('window:popstate', ['$event'])
Expand Down Expand Up @@ -62,12 +70,19 @@ export class AppComponent {
this.router.navigate(['uinservices/dashboard']);
}
}else{
this.router.navigate(['dashboard']);
if(window.location.href.includes('error=invalid_transaction')){
this.router.navigate(['error']);
}else{
this.router.navigate(['dashboard']);
};
}
}else{
this.router.navigate(['dashboard']);
}
});
if(window.location.href.includes('error=invalid_transaction')){
this.router.navigate(['error']);
}

if(!localStorage.getItem("langCode")){
localStorage.setItem("langCode", "eng");
Expand Down
40 changes: 40 additions & 0 deletions resident-ui/src/app/core/services/breakpoint.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { Injectable } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';

@Injectable({
providedIn: 'root'
})
export class BreakpointService {

constructor(private breakpointObserver: BreakpointObserver) {}
isBreakpointActive(): Observable<any> {
return this.breakpointObserver.observe([Breakpoints.XSmall,
Breakpoints.Small,
Breakpoints.Medium,
Breakpoints.Large,
Breakpoints.XLarge,]).pipe(
map(result => {
if (result.matches) {
if (result.breakpoints[Breakpoints.XSmall]) {
return "extraSmall"
}
if (result.breakpoints[Breakpoints.Small]) {
return "small"
}
if (result.breakpoints[Breakpoints.Medium]) {
return "medium"
}
if (result.breakpoints[Breakpoints.Large]) {
return "large"
}
if (result.breakpoints[Breakpoints.XLarge]) {
return "ExtraLarge"
}
}
})
);
}
}

6 changes: 5 additions & 1 deletion resident-ui/src/app/core/services/data-storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class DataStorageService {
}

shareInfo(request: any) {
return this.httpClient.post(this.BASE_URL + '/share-credential', request, { observe: 'response', responseType: 'blob' as 'json' });
return this.httpClient.post(this.BASE_URL + '/share-credential', request, { observe: 'response' });
}

downloadAcknowledgement(eventId: string) {
Expand Down Expand Up @@ -334,6 +334,10 @@ export class DataStorageService {
return this.httpClient.post(this.BASE_URL + '/documents/'+transactionID+'?docCatCode='+docCatCode+'&docTypCode='+docTypCode+'&langCode='+localStorage.getItem("langCode")+'&referenceId='+referenceId, request);
}

deleteUploadedFile(docId:string, transactionID:string){
return this.httpClient.delete(this.BASE_URL + '/documents/'+docId + "?transactionId=" + transactionID)
}

isAuthenticated(){
return this.httpClient.get(this.BASE_URL+'/authorize/admin/validateToken');
}
Expand Down
9 changes: 2 additions & 7 deletions resident-ui/src/app/core/services/httpinterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,8 @@ export class AuthInterceptor implements HttpInterceptor {
err => {
this.ngOnInit();
if (err instanceof HttpErrorResponse) {
if (err.status === 401) {
if (this.router.url.includes('uinservices')) {
this.redirectService.redirect(window.location.href);
this.showMessage()
} else {
this.router.navigateByUrl(`dashboard`);
}
if (err.status === 401 && err.statusText === "Unauthorized") {

}else if (err.status === 403 && err.statusText === "Forbidden") {
this.showMessage()
} else if (err.status === 413) {
Expand Down
3 changes: 2 additions & 1 deletion resident-ui/src/app/core/services/loginredirect.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Injectable } from '@angular/core';
import { v4 as uuid } from 'uuid';
import { AppConfigService } from 'src/app/app-config.service';
import defaultJson from "src/assets/i18n/default.json";

@Injectable()
export class LoginRedirectService {
Expand All @@ -13,7 +14,7 @@ export class LoginRedirectService {
if(url.split("#")[1] === "/dashboard"){
constructurl = url.replace("/dashboard", "/uinservices/dashboard");
}
window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().login}` + btoa(constructurl)+"?state="+stateParam;
window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().login}v2/` + btoa(constructurl)+"?state="+stateParam+"&ui_locales="+defaultJson["keyboardMapping"][localStorage.getItem("langCode")];
localStorage.setItem("redirectURL", constructurl)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ input[type="radio"] {
height: 38px !important;
border: 1px solid black;
width: 160px;
outline: #909090 solid 1px!important;
border-radius: 5px;
color: #fff!important;
}

.mat-select-value{
Expand All @@ -450,9 +453,9 @@ input[type="radio"] {
height: auto !important;
} */

::ng-deep .cdk-overlay-connected-position-bounding-box{
/* ::ng-deep .cdk-overlay-connected-position-bounding-box{
right: auto !important;
}
} */

::ng-deep #cdk-overlay-0{
right: auto !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
name="search"
class="search-input"
[(ngModel)]="searchText"
(keyup)="searchInput()"
(input)="searchInput()"
/>
<!-- <button
matTooltip="{{ 'helpText.magnifying_glass' | translate }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit, OnDestroy } from "@angular/core";
import { MatDialog } from "@angular/material";
import { Component, OnInit, OnDestroy, ViewChild } from "@angular/core";
import { MatDialog, MatPaginator,MatPaginatorIntl } from "@angular/material";
import { DataStorageService } from "src/app/core/services/data-storage.service";
import { RegistrationCentre } from "./registration-center-details.model";
import { Router, ActivatedRoute } from "@angular/router";
Expand All @@ -11,12 +11,15 @@ import { Subscription } from "rxjs";
import { saveAs } from 'file-saver';
import { AuditService } from "src/app/core/services/audit.service";


@Component({
selector: "app-center-selection",
templateUrl: "./center-selection.component.html",
styleUrls: ["./center-selection.component.css"]
})
export class CenterSelectionComponent implements OnInit, OnDestroy {
// @ViewChild(MatPaginator) paginator: MatPaginator;

REGISTRATION_CENTRES: RegistrationCentre[] = [];
searchClick: boolean = false;
isWorkingDaysAvailable = false;
Expand Down Expand Up @@ -69,9 +72,10 @@ export class CenterSelectionComponent implements OnInit, OnDestroy {
private route: ActivatedRoute,
private translate: TranslateService,
private activatedRoute: ActivatedRoute,
private auditService: AuditService
private auditService: AuditService,
private paginator: MatPaginatorIntl
) {
this.translate.use(this.langCode);
this.translate.use(this.langCode);
}

async ngOnInit() {
Expand All @@ -94,7 +98,7 @@ export class CenterSelectionComponent implements OnInit, OnDestroy {
//this.openDialog();
this.recommendedCenterLocCode = 5;
const subs = this.dataService
.getLocationHierarchyLevel("eng")
.getLocationHierarchyLevel(this.langCode)
.subscribe((response) => {
//get all location types from db
this.allLocationTypes = response[appConstants.RESPONSE]["locationHierarchyLevels"];
Expand Down Expand Up @@ -149,6 +153,12 @@ export class CenterSelectionComponent implements OnInit, OnDestroy {
this.errorlabels = response["error"];
this.apiErrorCodes = response[appConstants.API_ERROR_CODES];
this.popupMessages = response;
this.paginator.itemsPerPageLabel = response['paginatorIntl'].itemsPerPageLabel;
const originalGetRangeLabel = this.paginator.getRangeLabel;
this.paginator.getRangeLabel = (page: number, size: number, len: number) => {
return originalGetRangeLabel(page, size, len)
.replace('of', response['paginatorIntl'].of);
};
});
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
}
.mat-card-subtitle {
cursor: pointer;
text-align: left;
font-size: 14px;
letter-spacing: 0px;
color: #000000;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="main-div" *ngIf="menuItems">
<div class="main-div" *ngIf="menuItems" dir="{{sitealignment}}">
<mat-grid-list #grid [cols]="cols" rowHeight="200px" gutterSize="5px">
<mat-grid-tile colspan="1" rowspan="2">
<div class="item1 item-card" id="dashboardCard1" (click)="onItemSelected(menuItems[0].displayName)">
<div class="item1 item-card" id="dashboardCard1" (click)="onItemSelected('UIN Services')">
<mat-card>
<div class="title">
<span class="icon"><img mat-card-xs-image class="dashboard-icons" [src]='menuItems[0].icon' /></span>
Expand All @@ -11,25 +11,23 @@
<br/>

</mat-card-title>
<mat-card-title class="mat-card-title" [id]="menuItems[0].displayName" *ngIf="menuItems[0].route"
(click)="onItemSelected(menuItems[0].route)">{{
menuItems[0].displayName | translate }}</mat-card-title>
<mat-card-title class="mat-card-title" [id]="menuItems[0].displayName" *ngIf="menuItems[0].route">
{{ menuItems[0].displayName | translate }}</mat-card-title>
</div>
<mat-card-subtitle class="display-description">{{menuItems[0].displaydescription}}</mat-card-subtitle>
<mat-card-subtitle class="display-description" style="margin-bottom: 0px;">{{menuItems[0].availableServicesDescription}}</mat-card-subtitle>
<mat-card-header>
<ul class="uin-service-list">
<li *ngFor="let subMenu of menuItems[0].subMenus"
(click)="onItemSelected(subMenu.route)" >{{
subMenu.displayName | translate }}</li>
<li *ngFor="let subMenu of menuItems[0].subMenus">
{{ subMenu.displayName | translate }}</li>
</ul>
<div style="flex-grow: 1"></div>
</mat-card-header>
</mat-card>
</div>
</mat-grid-tile>
<mat-grid-tile colspan="1" rowspan="1">
<div class="item2 item-card" id="dashboardCard2" (click)="onItemSelected(menuItems[1].displayName)">
<div class="item2 item-card" id="dashboardCard2" (click)="onItemSelected('Get Information')">
<mat-card>
<div class="title">
<span class="icon"><img mat-card-xs-image class="dashboard-icons" [src]='menuItems[1].icon' /></span>
Expand All @@ -38,8 +36,7 @@
<mat-card-title class="mat-card-title" *ngIf="!menuItems[1].route">{{ menuItems[1].displayName | translate }}
</mat-card-title>

<mat-card-title class="mat-card-title" [id]="menuItems[1].displayName" *ngIf="menuItems[1].route"
(click)="onItemSelected(menuItems[1].route)">{{
<mat-card-title class="mat-card-title" [id]="menuItems[1].displayName" *ngIf="menuItems[1].route">{{
menuItems[1].displayName | translate }}</mat-card-title>
</div>
<mat-card-subtitle class="display-description" style="margin-bottom: 0px;">{{menuItems[1].availableServicesDescription}}:</mat-card-subtitle>
Expand All @@ -55,7 +52,7 @@
</div>
</mat-grid-tile>
<mat-grid-tile colspan="1" rowspan="1">
<div class="item3 item-card" id="dashboardCard3" (click)="onItemSelected(menuItems[2].displayName)">
<div class="item3 item-card" id="dashboardCard3" (click)="onItemSelected('Booking an Appointment')">
<mat-card >
<div class="title">
<span class="icon"><img mat-card-xs-image class="dashboard-icons" [src]='menuItems[2].icon' /></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { DataStorageService } from "src/app/core/services/data-storage.service";
import { AppConfigService } from 'src/app/app-config.service';
import { Subscription } from "rxjs";
import { AuditService } from "src/app/core/services/audit.service";
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { BreakpointService } from "src/app/core/services/breakpoint.service";
import { LoginRedirectService } from 'src/app/core/services/loginredirect.service'

import { LoginRedirectService } from 'src/app/core/services/loginredirect.service';
@Component({
selector: "app-dashboard",
templateUrl: "./dashboard.component.html",
Expand All @@ -20,41 +20,36 @@ export class DashboardComponent implements OnInit, OnDestroy {
subscriptions: Subscription[] = [];
userPreferredLangCode = localStorage.getItem("langCode");
cols : number;
sitealignment:string = localStorage.getItem('direction');

constructor(
private router: Router,
private dataStorageService: DataStorageService,
private translateService: TranslateService,
private appConfigService: AppConfigService,
private auditService: AuditService,
private breakpointObserver: BreakpointObserver,
private breakPointService: BreakpointService,
private redirectService: LoginRedirectService
) {
this.breakpointObserver.observe([
Breakpoints.XSmall,
Breakpoints.Small,
Breakpoints.Medium,
Breakpoints.Large,
Breakpoints.XLarge,
]).subscribe(result => {
if (result.matches) {
if (result.breakpoints[Breakpoints.XSmall]) {
this.breakPointService.isBreakpointActive().subscribe(active =>{
if (active) {
if(active === "extraSmall"){
this.cols = 1;
}
if (result.breakpoints[Breakpoints.Small]) {
if(active === "small"){
this.cols = 1;
}
if (result.breakpoints[Breakpoints.Medium]) {
if(active === "medium"){
this.cols = 2;
}
if (result.breakpoints[Breakpoints.Large]) {
if(active === "large"){
this.cols = 3;
}
if (result.breakpoints[Breakpoints.XLarge]) {
if(active === "ExtraLarge"){
this.cols = 3;
}
}
});
});
}

async ngOnInit() {
Expand All @@ -73,7 +68,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
this.router.navigate(["regcenter"])
}else if(item === "Booking an Appointment"){
this.auditService.audit('RP-043', 'Book an appointment', 'RP-Book an appointment', 'Book an appointment', 'User clicks on "book an appointment" card');
window.open(this.appConfigService.getConfig()["mosip-prereg-ui-url"], "_blank");
window.open(this.appConfigService.getConfig()["mosip-prereg-ui-url"]+"#/"+localStorage.getItem("langCode"), "_blank");
}else{
this.router.navigate([item]);
}
Expand Down
Loading
Loading