Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
cf89362b
Commit
cf89362b
authored
Oct 21, 2021
by
Hamza HRAMCHI
Browse files
FIX #18428 TIME 0:15 sent numeric package: display communicationMean
parent
0310509c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/frontend/app/sentResource/sent-numeric-package-page/sent-numeric-package-page.component.html
View file @
cf89362b
...
...
@@ -32,8 +32,8 @@
<div>
{{recipient.label}} -
<b>
{{recipient.m2m}}
</b>
</div>
<div
class=
"attachLabel"
>
({{'lang.communicationMean' | translate}} : {{recipient.communicationMeans}})
<div
*ngIf=
"!functions.empty(recipient.communicationMeans.url) || functions.empty(recipient.communicationMeans.login)"
class=
"attachLabel"
>
({{'lang.communicationMean' | translate}} : {{
getCommunicationMean(
recipient.communicationMeans
)
}})
</div>
</span>
<mat-icon
matChipRemove
class=
"fa fa-times"
*ngIf=
"canManageMail()"
></mat-icon>
...
...
src/frontend/app/sentResource/sent-numeric-package-page/sent-numeric-package-page.component.ts
View file @
cf89362b
...
...
@@ -546,4 +546,12 @@ export class SentNumericPackagePageComponent implements OnInit {
canSendNumericPackage
()
{
return
this
.
privilegeService
.
getCurrentUserMenus
().
filter
((
item
:
any
)
=>
item
.
id
===
'
manage_numeric_package
'
).
length
>
0
;
}
getCommunicationMean
(
value
:
any
)
{
if
(
!
this
.
functions
.
empty
(
value
.
url
))
{
return
value
.
url
;
}
else
if
(
!
this
.
functions
.
empty
(
value
.
email
))
{
return
value
.
email
;
}
}
}
Write
Preview
Supports
Markdown
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