Skip to content

Commit

Permalink
Merge pull request #612 from mansurskTarento/odcs-designations
Browse files Browse the repository at this point in the history
Odcs designations
  • Loading branch information
christyfernandes authored Aug 9, 2024
2 parents 8b45388 + 9980bd2 commit bbc46db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export class DesignationsComponent implements OnInit {
this.designationsService.createFrameWork(masterFrameWorkName, this.orgId, departmentName).subscribe((res: any) => {
if (_.get(res, 'result.framework')) {
this.environment.frameworkName = _.get(res, 'result.framework')
this.getOrgReadData()
setTimeout(() => {
this.getOrgReadData()
}, 5000)
// this.publishFrameWork('', true)
// this.getFrameworkInfo(res.frameworkid)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ const API_END_POINTS = {
IMPORT_DESIGNATION: 'api/framework/v1/term/create?',
ORG_READ: '/apis/proxies/v8/org/v1/read',
CREATE_TERM: `/apis/proxies/v8/designation/create/term`,
CREATE_FRAME_WORK: (frameworkName: string, orgId: string, termName: string) =>
`/apis/proxies/v8/org/framework/read?frameworkName=${frameworkName}&orgId=${orgId}&termName=${termName}`,
CREATE_FRAME_WORK: (frameworkName: string, orgId: string, termName: string) => {
return `/apis/proxies/v8/org/framework/read?frameworkName=${frameworkName}&orgId=${orgId}&termName=${encodeURIComponent(termName)}`
},
DELETE_DESIGNATION: (frameworkName: string, category: string) =>
`/apis/proxies/v8/framework/v1/term/retire?framework=${frameworkName}&category=${category}`,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export class OdcsMappingComponent implements OnInit {
this.designationsService.createFrameWork(masterFrameWorkName, this.orgId, departmentName).subscribe({
next: res => {
if (_.get(res, 'result.framework')) {
this.getOrgReadData()
setTimeout(() => {
this.getOrgReadData()
}, 5000)
}
},
error: () => {
Expand Down

0 comments on commit bbc46db

Please sign in to comment.