Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
7266a705
Commit
7266a705
authored
Dec 04, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
message-engine-hiring-team
parent
81685280
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
admin-portal-layout.component.ts
...rtal/admin-portal-layout/admin-portal-layout.component.ts
+4
-6
message-engine-applicant-view.component.ts
...applicant-view/message-engine-applicant-view.component.ts
+0
-4
No files found.
frontend/angular/src/app/components/admin-portal/admin-portal-layout/admin-portal-layout.component.ts
View file @
7266a705
...
...
@@ -67,10 +67,6 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
return
;
}
if
(
message
.
name
!==
'HiringTeamChat'
||
message
.
message
===
null
)
{
return
;
}
if
(
message
.
name
===
'HiringTeamChat'
&&
message
.
message
===
null
)
{
this
.
jobId
=
null
;
this
.
loggedIn
=
null
;
...
...
@@ -79,11 +75,13 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
return
;
}
if
(
message
.
name
!==
'HiringTeamChat'
||
message
.
message
===
null
)
{
return
;
}
const
msg
=
JSON
.
parse
(
message
.
message
);
console
.
log
(
'Admin Parsed'
,
msg
);
this
.
jobId
=
msg
.
JobApplicationID
;
this
.
loggedIn
=
msg
.
CandidateID
;
console
.
log
(
'Admin Values:'
,
this
.
jobId
,
this
.
loggedIn
);
// Show Chat bubble if message service allows
this
.
showBubble
=
true
;
}
...
...
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.ts
View file @
7266a705
...
...
@@ -67,7 +67,6 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
ngOnInit
():
void
{
this
.
utilsService
.
resetCounter
();
this
.
showLoader
=
true
;
console
.
log
(
'Job'
,
this
.
jobId
);
this
.
subscriptions
.
push
(
this
.
appService
.
getTypes
(
'SentVia'
)
...
...
@@ -77,21 +76,18 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
if
(
this
.
embedded
)
{
if
(
this
.
adminPortalLayoutService
.
userData
)
{
this
.
loggedInId
=
this
.
adminPortalLayoutService
.
userData
.
CompanyUser
.
User
;
console
.
log
(
'Already Engine -> User'
,
this
.
loggedInId
);
this
.
initComponent
();
}
else
{
this
.
subscriptions
.
push
(
this
.
adminPortalLayoutService
.
userDataUpdated
.
first
()
.
subscribe
(()
=>
{
this
.
loggedInId
=
this
.
adminPortalLayoutService
.
userData
.
CompanyUser
.
User
;
console
.
log
(
'Engine -> User'
,
this
.
loggedInId
);
this
.
initComponent
();
}));
}
}
else
{
// For applicant
this
.
embedded
=
false
;
console
.
log
(
'Applicant Engine -> User'
,
this
.
loggedInId
);
this
.
initComponent
();
// Use candidate ID fetched from iFrameService
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment