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
aae22cbf
Commit
aae22cbf
authored
Dec 05, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
message-engine-hiring-team css-fix
parent
a8d2ae8c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
28 deletions
+43
-28
admin-portal-layout.component.html
...al/admin-portal-layout/admin-portal-layout.component.html
+1
-1
applicant-portal-layout.component.ts
...licant-portal-layout/applicant-portal-layout.component.ts
+3
-3
applicant-portal-layout.service.ts
...pplicant-portal-layout/applicant-portal-layout.service.ts
+14
-11
message-engine-applicant-view.component.html
...plicant-view/message-engine-applicant-view.component.html
+0
-1
message-engine-applicant-view.component.scss
...plicant-view/message-engine-applicant-view.component.scss
+13
-2
message-engine-applicant-view.component.ts
...applicant-view/message-engine-applicant-view.component.ts
+11
-8
custom.scss
frontend/angular/src/assets/css/custom.scss
+1
-2
No files found.
frontend/angular/src/app/components/admin-portal/admin-portal-layout/admin-portal-layout.component.html
View file @
aae22cbf
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<router-outlet
(
activate
)="
onRouteUpdate
()"
></router-outlet>
<router-outlet
(
activate
)="
onRouteUpdate
()"
></router-outlet>
</div>
</div>
</div>
</div>
<p-dialog
#
messageEngine
[(
visible
)]="
showChat
"
header=
""
[
modal
]="
true
"
[
responsive
]="
true
"
<p-dialog
#
messageEngine
[(
visible
)]="
showChat
"
header=
""
[
modal
]="
true
"
[
responsive
]="
true
"
[
resizable
]="
false
"
class=
"message-engine"
[
style
]="{
width:
'
300px
',
height:
'
500px
'}"
>
class=
"message-engine"
[
style
]="{
width:
'
300px
',
height:
'
500px
'}"
>
<app-message-engine-applicant-view
*
ngIf=
"showChat"
[
embedded
]="
true
"
[
jobId
]="
jobId
"
[
loggedInId
]="
loggedIn
"
<app-message-engine-applicant-view
*
ngIf=
"showChat"
[
embedded
]="
true
"
[
jobId
]="
jobId
"
[
loggedInId
]="
loggedIn
"
(
minimize
)="
showChat =
false"
></app-message-engine-applicant-view>
(
minimize
)="
showChat =
false"
></app-message-engine-applicant-view>
...
...
frontend/angular/src/app/components/applicant-portal/applicant-portal-layout/applicant-portal-layout.component.ts
View file @
aae22cbf
...
@@ -21,7 +21,7 @@ export class ApplicantPortalLayoutComponent implements OnInit, OnDestroy {
...
@@ -21,7 +21,7 @@ export class ApplicantPortalLayoutComponent implements OnInit, OnDestroy {
jobId
:
string
;
jobId
:
string
;
key
:
string
;
key
:
string
;
year
=
new
Date
().
getFullYear
();
year
=
new
Date
().
getFullYear
();
constructor
(
constructor
(
private
msgsService
:
MsgsService
,
private
msgsService
:
MsgsService
,
private
userService
:
UserService
,
private
userService
:
UserService
,
...
@@ -29,7 +29,7 @@ export class ApplicantPortalLayoutComponent implements OnInit, OnDestroy {
...
@@ -29,7 +29,7 @@ export class ApplicantPortalLayoutComponent implements OnInit, OnDestroy {
private
titleService
:
Title
,
private
titleService
:
Title
,
private
router
:
Router
,
private
router
:
Router
,
private
activatedRoute
:
ActivatedRoute
,
private
activatedRoute
:
ActivatedRoute
,
private
applicantPortalLayoutService
:
ApplicantPortalLayoutService
,
private
applicantPortalLayoutService
:
ApplicantPortalLayoutService
)
{
}
)
{
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -66,7 +66,7 @@ export class ApplicantPortalLayoutComponent implements OnInit, OnDestroy {
...
@@ -66,7 +66,7 @@ export class ApplicantPortalLayoutComponent implements OnInit, OnDestroy {
loadData
()
{
loadData
()
{
this
.
userService
.
reloadUserDetails
();
this
.
userService
.
reloadUserDetails
();
this
.
msgsService
.
clearErrorMessages
();
this
.
msgsService
.
clearErrorMessages
();
this
.
applicantPortalLayoutService
.
reloadApplicantUserDetails
(
this
.
jobId
,
this
.
key
);
this
.
applicantPortalLayoutService
.
reloadApplicantUserDetails
(
this
.
jobId
,
this
.
key
);
}
}
...
...
frontend/angular/src/app/components/applicant-portal/applicant-portal-layout/applicant-portal-layout.service.ts
View file @
aae22cbf
...
@@ -9,6 +9,7 @@ export class ApplicantPortalLayoutService {
...
@@ -9,6 +9,7 @@ export class ApplicantPortalLayoutService {
userDataUpdated
=
new
Subject
<
any
>
();
userDataUpdated
=
new
Subject
<
any
>
();
userData
:
any
;
userData
:
any
;
jobId
:
string
;
constructor
(
constructor
(
private
apiService
:
ApiService
,
private
apiService
:
ApiService
,
...
@@ -17,21 +18,23 @@ export class ApplicantPortalLayoutService {
...
@@ -17,21 +18,23 @@ export class ApplicantPortalLayoutService {
}
}
reloadApplicantUserDetails
(
job
,
key
)
{
reloadApplicantUserDetails
(
job
,
key
):
void
{
if
(
job
&&
key
)
{
if
(
job
&&
key
)
{
le
t
params
=
{
cons
t
params
=
{
environment
:
environment
.
envName
,
environment
:
environment
.
envName
,
Job
:
job
,
Job
:
job
,
Key
:
key
Key
:
key
}
}
;
this
.
apiService
.
post
(
`svc/ApplicantUserDetails`
,
params
).
subscribe
(
this
.
apiService
.
post
(
'svc/ApplicantUserDetails'
,
params
)
(
data
)
=>
{
.
subscribe
(
if
(
this
.
utilsService
.
isSuccessfulResponse
(
data
))
{
data
=>
{
this
.
userData
=
data
;
if
(
this
.
utilsService
.
isSuccessfulResponse
(
data
))
{
this
.
userDataUpdated
.
next
(
data
);
this
.
jobId
=
job
;
}
this
.
userData
=
data
;
});
this
.
userDataUpdated
.
next
(
data
);
}
});
}
}
}
}
}
}
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.html
View file @
aae22cbf
<div
class=
"{{embedded ? 'openedFromWorkflow' : 'dashboard-content-area second-part' }}"
>
<div
class=
"{{embedded ? 'openedFromWorkflow' : 'dashboard-content-area second-part' }}"
>
<app-error-message></app-error-message>
<form
#
form=
"ngForm"
*
ngIf=
"jobId && loggedInId"
>
<form
#
form=
"ngForm"
*
ngIf=
"jobId && loggedInId"
>
<div
class=
"ui-g ui-fluid"
>
<div
class=
"ui-g ui-fluid"
>
<div
class=
"ui-g-12 ui-md-12"
>
<div
class=
"ui-g-12 ui-md-12"
>
...
...
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.scss
View file @
aae22cbf
...
@@ -24,9 +24,14 @@ a {
...
@@ -24,9 +24,14 @@ a {
}
}
.ui-fileupload-row
{
.ui-fileupload-row
{
div
:nth-child
(
n
+
3
)
{
div
{
display
:
none
;
display
:
none
;
}
}
div
:nth-child
(
2
)
{
display
:
block
;
word-break
:
break-all
;
}
}
}
.ui-button-text
{
.ui-button-text
{
...
@@ -80,7 +85,7 @@ a {
...
@@ -80,7 +85,7 @@ a {
}
}
.messages-wrapper
{
.messages-wrapper
{
max-height
:
30
0px
;
height
:
37
0px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
...
@@ -191,6 +196,12 @@ a {
...
@@ -191,6 +196,12 @@ a {
.ui-fileupload-content
{
.ui-fileupload-content
{
margin-top
:
0
.5em
;
margin-top
:
0
.5em
;
border-radius
:
10px
;
border-radius
:
10px
;
padding
:
5px
;
ul
{
overflow-y
:
auto
;
height
:
40px
;
}
}
}
.ql-editor
{
.ql-editor
{
...
...
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.ts
View file @
aae22cbf
...
@@ -13,7 +13,6 @@ import { ChatAttachmentModel } from '../../models/chat-attachment.model';
...
@@ -13,7 +13,6 @@ import { ChatAttachmentModel } from '../../models/chat-attachment.model';
import
{
JobApplicationModel
}
from
'../../models/job-application.model'
;
import
{
JobApplicationModel
}
from
'../../models/job-application.model'
;
import
{
MessageModel
}
from
'../../models/message.model'
;
import
{
MessageModel
}
from
'../../models/message.model'
;
import
{
SentViaEnum
}
from
'../../models/sent-via.enum'
;
import
{
SentViaEnum
}
from
'../../models/sent-via.enum'
;
import
{
MsgsService
}
from
'../../oneit/services/msgs.service'
;
import
{
SaveService
}
from
'../../oneit/services/save.service'
;
import
{
SaveService
}
from
'../../oneit/services/save.service'
;
import
{
UtilsService
}
from
'../../oneit/services/utils.service'
;
import
{
UtilsService
}
from
'../../oneit/services/utils.service'
;
import
{
AdminPortalLayoutService
}
from
'../admin-portal/admin-portal-layout/admin-portal-layout.service'
;
import
{
AdminPortalLayoutService
}
from
'../admin-portal/admin-portal-layout/admin-portal-layout.service'
;
...
@@ -57,8 +56,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -57,8 +56,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
private
appService
:
AppService
,
private
appService
:
AppService
,
private
messageEngineApplicantViewService
:
MessageEngineApplicantViewService
,
private
messageEngineApplicantViewService
:
MessageEngineApplicantViewService
,
private
adminPortalLayoutService
:
AdminPortalLayoutService
,
private
adminPortalLayoutService
:
AdminPortalLayoutService
,
private
applicantPortalLayoutService
:
ApplicantPortalLayoutService
,
private
applicantPortalLayoutService
:
ApplicantPortalLayoutService
private
msgService
:
MsgsService
)
{
)
{
super
(
utilsService
);
super
(
utilsService
);
// In order to get previous url for navigation
// In order to get previous url for navigation
...
@@ -85,13 +83,21 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -85,13 +83,21 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
// For Hiring Team or Applicant
// For Hiring Team or Applicant
const
service
=
this
.
embedded
?
this
.
adminPortalLayoutService
:
this
.
applicantPortalLayoutService
;
const
service
=
this
.
embedded
?
this
.
adminPortalLayoutService
:
this
.
applicantPortalLayoutService
;
if
(
service
.
userData
)
{
if
(
service
.
userData
)
{
this
.
loggedInId
=
service
.
userData
.
CompanyUser
.
User
;
if
(
!
(
service
instanceof
AdminPortalLayoutService
))
{
this
.
jobId
=
service
.
jobId
;
this
.
loggedInId
=
service
.
userData
.
UserID
;
}
else
{
this
.
loggedInId
=
service
.
userData
.
CompanyUser
.
User
;
}
this
.
initComponent
();
this
.
initComponent
();
}
else
{
}
else
{
this
.
subscriptions
.
push
(
service
.
userDataUpdated
this
.
subscriptions
.
push
(
service
.
userDataUpdated
.
first
()
.
first
()
.
subscribe
(()
=>
{
.
subscribe
(()
=>
{
this
.
loggedInId
=
service
.
userData
.
CompanyUser
.
User
;
this
.
loggedInId
=
service
.
userData
.
UserID
;
if
(
!
(
service
instanceof
AdminPortalLayoutService
))
{
this
.
jobId
=
service
.
jobId
;
}
this
.
initComponent
();
this
.
initComponent
();
}));
}));
}
}
...
@@ -285,9 +291,6 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -285,9 +291,6 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
const
editor
=
editElement
.
getElementsByClassName
(
'ql-editor'
);
const
editor
=
editElement
.
getElementsByClassName
(
'ql-editor'
);
if
(
this
.
showPlainText
(
this
.
Message
.
MessageContent
)
===
''
)
{
if
(
this
.
showPlainText
(
this
.
Message
.
MessageContent
)
===
''
)
{
this
.
msgService
.
addErrorMessages
(
[
this
.
utilsService
.
getValidationMessage
(
'required'
,
'Message Content'
,
{})]
);
this
.
messageEditor
.
getQuill
()
this
.
messageEditor
.
getQuill
()
.
focus
();
.
focus
();
editor
[
0
].
classList
.
add
(
'error-block'
);
editor
[
0
].
classList
.
add
(
'error-block'
);
...
...
frontend/angular/src/assets/css/custom.scss
View file @
aae22cbf
...
@@ -308,8 +308,7 @@
...
@@ -308,8 +308,7 @@
&
.ui-dialog-draggable
{
&
.ui-dialog-draggable
{
left
:
auto
!
important
;
left
:
auto
!
important
;
right
:
10px
!
important
;
right
:
10px
!
important
;
min-height
:
560px
!
important
;
height
:
600px
!
important
;
max-height
:
600px
!
important
;
bottom
:
0
!
important
;
bottom
:
0
!
important
;
top
:
auto
!
important
;
top
:
auto
!
important
;
width
:
690px
!
important
;
width
:
690px
!
important
;
...
...
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