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
432cabb8
Commit
432cabb8
authored
Dec 09, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attachment-css
parent
bbe136c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
3 deletions
+44
-3
message-engine-applicant-view.component.html
...plicant-view/message-engine-applicant-view.component.html
+9
-1
message-engine-applicant-view.component.scss
...plicant-view/message-engine-applicant-view.component.scss
+26
-0
message-engine-applicant-view.component.ts
...applicant-view/message-engine-applicant-view.component.ts
+8
-2
chat-attachment.model.ts
frontend/angular/src/app/models/chat-attachment.model.ts
+1
-0
No files found.
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.html
View file @
432cabb8
...
@@ -96,9 +96,17 @@
...
@@ -96,9 +96,17 @@
id=
"File"
url=
"{{apiUrl}}uploadFile"
auto=
"true"
id=
"File"
url=
"{{apiUrl}}uploadFile"
auto=
"true"
(
onUpload
)="
onUpload
($
event
)"
[
disabled
]="
showLoader
"
(
onUpload
)="
onUpload
($
event
)"
[
disabled
]="
showLoader
"
chooseLabel=
"Browse"
#
uploader
multiple=
"multiple"
>
chooseLabel=
"Browse"
#
uploader
multiple=
"multiple"
>
<ng-template
let-file
pTemplate=
"file"
>
<div>
Uploading...
</div>
</ng-template>
<ng-template
pTemplate=
"content"
>
<ng-template
pTemplate=
"content"
>
<ul
*
ngIf=
"Message.Attachments.length"
>
<ul
*
ngIf=
"Message.Attachments.length"
>
<li
*
ngFor=
"let file of Message.Attachments"
>
{{file.File.Name}}
</li>
<li
*
ngFor=
"let file of Message.Attachments"
class=
"attachment-content"
>
<div
[
title
]="
file
.
File
.
Name
"
>
Attachment {{file.File.Index + 1}}
</div>
<a
(
click
)="
removeAttachment
(
file
)"
>
<span
class=
"ui-icon-close"
title=
"Remove"
></span>
</a>
</li>
</ul>
</ul>
</ng-template>
</ng-template>
</p-fileUpload>
</p-fileUpload>
...
...
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.scss
View file @
432cabb8
...
@@ -45,6 +45,32 @@ a {
...
@@ -45,6 +45,32 @@ a {
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.attachment-content
{
display
:
flex
;
div
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
flex
:
1
1
auto
;
font-size
:
12px
;
margin-top
:
2px
;
}
a
{
height
:
17px
;
width
:
17px
;
border
:
1px
solid
red
;
border-radius
:
50%
;
cursor
:
pointer
;
span
{
font-size
:
15px
;
color
:
red
;
}
}
}
.message-block
{
.message-block
{
background-color
:
white
;
background-color
:
white
;
border-radius
:
20px
;
border-radius
:
20px
;
...
...
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.ts
View file @
432cabb8
...
@@ -119,7 +119,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -119,7 +119,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
const
assocs
=
const
assocs
=
[
ASSOCS
.
JOB
,
[
ASSOCS
.
JOB
,
ASSOCS
.
HIRING_TEAM
].
join
(
'.'
),
ASSOCS
.
MESSAGES
,
[
ASSOCS
.
MESSAGES
,
ASSOCS
.
SENT_BY
].
join
(
'.'
),
[
ASSOCS
.
JOB
,
[
ASSOCS
.
JOB
,
ASSOCS
.
HIRING_TEAM
].
join
(
'.'
),
ASSOCS
.
MESSAGES
,
[
ASSOCS
.
MESSAGES
,
ASSOCS
.
SENT_BY
].
join
(
'.'
),
[
ASSOCS
.
MESSAGES
,
ASSOCS
.
ATTACHMENTS
].
join
(
'.'
),
[
ASSOCS
.
CANDIDATE
,
ASSOCS
.
USER
].
join
(
'.'
)];
[
ASSOCS
.
MESSAGES
,
ASSOCS
.
ATTACHMENTS
].
join
(
'.'
),
[
ASSOCS
.
CANDIDATE
,
ASSOCS
.
USER
].
join
(
'.'
)];
this
.
subscriptions
.
push
(
this
.
messageEngineApplicantViewService
.
getEngineApplicantViewByID
(
this
.
jobId
,
assocs
)
this
.
subscriptions
.
push
(
this
.
messageEngineApplicantViewService
.
getEngineApplicantViewByID
(
this
.
jobId
,
assocs
)
.
subscribe
(
.
subscribe
(
...
@@ -203,12 +203,18 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -203,12 +203,18 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
this
.
utilsService
.
createObject
(
chatAttachment
,
this
.
createdObjs
);
this
.
utilsService
.
createObject
(
chatAttachment
,
this
.
createdObjs
);
chatAttachment
.
File
=
{
chatAttachment
.
File
=
{
FileToken
:
JSON
.
parse
(
event
.
xhr
.
response
).
files
[
0
].
token
,
FileToken
:
JSON
.
parse
(
event
.
xhr
.
response
).
files
[
0
].
token
,
Name
:
JSON
.
parse
(
event
.
xhr
.
response
).
files
[
0
].
fileName
Name
:
JSON
.
parse
(
event
.
xhr
.
response
).
files
[
0
].
fileName
,
Index
:
this
.
Message
.
Attachments
.
length
};
};
chatAttachment
.
Message
=
this
.
Message
;
chatAttachment
.
Message
=
this
.
Message
;
this
.
Message
.
Attachments
.
push
(
chatAttachment
);
this
.
Message
.
Attachments
.
push
(
chatAttachment
);
}
}
removeAttachment
(
file
):
void
{
this
.
utilsService
.
removeMultiRefObject
(
file
,
this
.
Message
,
'Attachments'
,
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
);
}
/**
/**
* It simply creates a new object and assigns the default values to it.
* It simply creates a new object and assigns the default values to it.
*/
*/
...
...
frontend/angular/src/app/models/chat-attachment.model.ts
View file @
432cabb8
...
@@ -12,4 +12,5 @@ export class FileContent {
...
@@ -12,4 +12,5 @@ export class FileContent {
URI
?:
string
;
URI
?:
string
;
Name
:
string
;
Name
:
string
;
FileToken
?:
string
;
FileToken
?:
string
;
Index
:
number
}
}
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