Skip to content

Commit 17eee31

Browse files
Merge pull request #584 from mansurskTarento/odcs-designations
Odcs designations
2 parents 41a99e2 + bf0c383 commit 17eee31

File tree

9 files changed

+36
-24
lines changed

9 files changed

+36
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@sunbird-cb/micro-surveys": "2.0.13",
4848
"@sunbird-cb/rain-dashboards": "0.4.33",
4949
"@sunbird-cb/resolver": "^1.0.0",
50-
"@sunbird-cb/taxonomy-editor": "^0.0.18",
50+
"@sunbird-cb/taxonomy-editor": "^0.0.19",
5151
"@sunbird-cb/utils": "^1.0.18",
5252
"@types/file-saver": "^2.0.1",
5353
"brace": "^0.11.1",

project/ws/app/src/lib/routes/home/components/request-list/request-list.component.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ export class RequestListComponent implements OnInit {
6464
fullProfile: any
6565
rootOrgId: any
6666
constructor(private sanitizer: DomSanitizer,
67-
private homeService: ProfileV2Service,
68-
private datePipe: DatePipe,
69-
private activeRoute: ActivatedRoute,
70-
private dialog: MatDialog,
71-
private router: Router,
72-
private snackBar: MatSnackBar,
73-
private loaderService: LoaderService,
67+
private homeService: ProfileV2Service,
68+
private datePipe: DatePipe,
69+
private activeRoute: ActivatedRoute,
70+
private dialog: MatDialog,
71+
private router: Router,
72+
private snackBar: MatSnackBar,
73+
private loaderService: LoaderService,
7474
) { }
7575
requestList: any[] = [
7676
`You can request new content by filling out the request form. You will have the option to choose your content provider and
@@ -242,7 +242,7 @@ export class RequestListComponent implements OnInit {
242242
if (res) {
243243
setTimeout(() => {
244244
this.getRequestList()
245-
}, 1000)
245+
}, 1000)
246246
}
247247

248248
this.snackBar.open('Marked as Invalid')
@@ -264,7 +264,7 @@ export class RequestListComponent implements OnInit {
264264
if (_res && _res.data === 'confirmed') {
265265
setTimeout(() => {
266266
this.getRequestList()
267-
}, 1000)
267+
}, 1000)
268268
this.snackBar.open('Assigned submitted Successfully')
269269
} else {
270270
// this.snackBar.open('error')
@@ -285,7 +285,7 @@ export class RequestListComponent implements OnInit {
285285
if (_res && _res.data === 'confirmed') {
286286
setTimeout(() => {
287287
this.getRequestList()
288-
}, 1000)
288+
}, 1000)
289289

290290
this.snackBar.open('Re-assign submitted Successfully')
291291
} else {

project/ws/app/src/lib/routes/home/routes/designation/components/designations/designations.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="mobile-margin text-capitalize mat-h2">{{designationConfig.mainHeading}}</div>
44
<div>
55
<button mat-raised-button class="importBtn" [routerLink]="'import-designation'" type="button">
6-
Import from Igot master
6+
Import from iGOT master
77
</button>
88
</div>
99
</div>
@@ -13,9 +13,9 @@
1313
<div class="section-1">
1414
<div class="flex-4 mobile-margin text-capitalize mat-h2">{{designationConfig?.topsection?.heading}}</div>
1515
<ng-container *ngFor="let step of designationConfig?.topsection?.steps">
16-
<div class="flex gap-4 mb-4">
16+
<div class="flex gap-4">
1717
<div>
18-
<mat-icon class="infoIcon">info_outlined</mat-icon>
18+
<mat-icon class="infoIcon">error_outline</mat-icon>
1919
</div>
2020
<div>
2121
<p>{{step.title}}</p>
@@ -57,7 +57,7 @@
5757
<div class="w-full flex flex-col justify-center items-center emptyDesignations">
5858
<img src="/assets/icons/empty_data.svg" class="empty-desigantions-img">
5959
<div>
60-
<p class="empty-desigantions-text">No deisgnation has been imported from iGOT master.</p>
60+
<p class="empty-desigantions-text">No designation has been imported from iGOT master.</p>
6161
</div>
6262
<div class="mt-4">
6363
<button mat-raised-button class="importBtn" [routerLink]="'import-designation'">

project/ws/app/src/lib/routes/home/routes/designation/components/designations/designations.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class DesignationsComponent implements OnInit {
5858

5959
initializeDefaultValues() {
6060
this.configSvc = this.activateRoute.snapshot.data['configService']
61+
this.designationsService.setUserProfile(_.get(this.configSvc, 'userProfileV2'))
6162
this.orgId = _.get(this.configSvc, 'userProfile.rootOrgId')
6263
this.actionMenuItem = [
6364
// {
@@ -133,7 +134,7 @@ export class DesignationsComponent implements OnInit {
133134
} else {
134135
setTimeout(() => {
135136
this.getOrgReadData()
136-
}, 10000)
137+
}, 10000)
137138
}
138139
// console.log('orgFramework Details', res)
139140
})

project/ws/app/src/lib/routes/home/routes/designation/components/import-designation/import-designation.component.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
height: 20px;
55
color: #797979;
66
pointer-events: all;
7+
cursor: pointer;
78
}
89

910
.header-text {
@@ -129,10 +130,10 @@
129130
}
130131

131132
.custom-user-card {
132-
width: 292px;
133+
width: 360px;
133134
border: 1px solid rgba(0, 0, 0, 0.16);
134135
border-radius: 4px;
135-
height: 70px;
136+
height: 82px;
136137
}
137138

138139
.disableCard {

project/ws/app/src/lib/routes/home/routes/designation/components/import-designation/import-designation.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export class ImportDesignationComponent implements OnInit, OnDestroy {
7878
requestedFields: [],
7979
pageSize: this.pageSize,
8080
}
81-
// this.startIndex
8281
if (searchKey) {
8382
requestParams['searchString'] = searchKey
8483
}

project/ws/app/src/lib/routes/home/routes/designation/services/designations.service.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,21 @@ export class DesignationsService {
3838
orgDesignationList: any = []
3939
selectedDesignationList: any = []
4040
frameWorkInfo: any
41+
userProfile: any
4142

4243
constructor(
4344
private http: HttpClient,
4445
private configSvc: ConfigurationsService,
4546
) { }
4647

48+
setUserProfile(profileDetails: any) {
49+
this.userProfile = profileDetails
50+
}
51+
52+
get userProfileDetails() {
53+
return this.userProfile
54+
}
55+
4756
createFrameWork(frameworkName: string, orgId: string, termName: string) {
4857
return this.http.get<any>(API_END_POINTS.CREATE_FRAME_WORK(frameworkName, orgId, termName))
4958
}
@@ -126,7 +135,9 @@ export class DesignationsService {
126135
if (associations.length > 0) {
127136
Object.assign(c, { children: associations })
128137
}
129-
c['importedByName'] = _.get(c, 'additionalProperties.importedByName'),
138+
const importedBy = _.get(c, 'additionalProperties.importedById', null) === _.get(this.userProfile, 'userId', '')
139+
? 'You' : _.get(c, 'additionalProperties.importedById', null)
140+
c['importedByName'] = importedBy,
130141
c['importedOn'] = _.get(c, 'additionalProperties.importedOn'),
131142
c['importedById'] = _.get(c, 'additionalProperties.importedById')
132143
return c

project/ws/app/src/lib/routes/home/routes/odcs-mapping/odcs-mapping.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class OdcsMappingComponent implements OnInit {
5252
callResizeEvent(_event: any) {
5353
setTimeout(() => {
5454
window.dispatchEvent(new Event('resize'))
55-
}, 100)
55+
}, 100)
5656
}
5757

5858
createFreamwork() {
@@ -79,7 +79,7 @@ export class OdcsMappingComponent implements OnInit {
7979
} else {
8080
setTimeout(() => {
8181
this.getOrgReadData()
82-
}, 10000)
82+
}, 10000)
8383
}
8484
})
8585
}

project/ws/app/src/lib/routes/users/services/upload.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import * as fileSaver from 'file-saver'
66

77
const API_ENDPOINTS = {
88
// bulkUpload: `/apis/proxies/v8/user/v1/bulkupload`,
9-
bulkUpload: `/apis/proxies/v8/user/v2/bulkupload`, //csv support
9+
bulkUpload: `/apis/proxies/v8/user/v2/bulkupload`, // csv support
1010
downloadReport: `/apis/protected/v8/admin/userRegistration/bulkUploadReport`,
1111
getBulkUploadData: '/apis/proxies/v8/user/v1/bulkupload',
1212
getBulkApproval: '/apis/proxies/v8/workflow/admin/bulkupdate/getstatus',
1313
// bulkApprovalUpload: `/apis/proxies/v8/workflow/admin/transition/bulkupdate`,
14-
bulkApprovalUpload: '/apis/proxies/v8/workflow/admin/v2/bulkupdate/transition', //csv support
14+
bulkApprovalUpload: '/apis/proxies/v8/workflow/admin/v2/bulkupdate/transition', // csv support
1515
}
1616

1717
@Injectable()

0 commit comments

Comments
 (0)