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
f2019a0f
Commit
f2019a0f
authored
Jun 07, 2021
by
Guillaume Heurtier
Browse files
FEAT #14753 TIME 0:10 hide sector in contact field list
parent
70df2571
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/frontend/app/administration/contact/page/form/contacts-form.component.html
View file @
f2019a0f
...
...
@@ -32,7 +32,7 @@
style=
"text-align: center;"
>
{{'lang.addAll' | translate}}
</button>
<mat-divider></mat-divider>
<ng-container
*ngFor=
"let field of contactForm"
>
<button
mat-menu-item
*ngIf=
"!field.display && field.unit === 'address'"
<button
mat-menu-item
*ngIf=
"!field.display && field.unit === 'address'
&& field.id !== 'sector
"
(click)=
"field.display=!field.display"
>
<mat-icon
*ngIf=
"field.filling"
style=
"height: auto;padding-right: 10px;"
[title]=
"'lang.targetFillingField' | translate"
[style.color]=
"fillingRate.color"
class=
"fas fa-circle rate"
>
...
...
src/frontend/app/administration/contact/page/form/contacts-form.component.ts
View file @
f2019a0f
...
...
@@ -747,7 +747,7 @@ export class ContactsFormComponent implements OnInit {
}
toogleAllFieldsUnit
(
idUnit
:
string
)
{
this
.
contactForm
.
filter
(
field
=>
field
.
unit
===
idUnit
).
forEach
((
element
:
any
)
=>
{
this
.
contactForm
.
filter
(
field
=>
field
.
unit
===
idUnit
&&
field
.
id
!==
'
sector
'
).
forEach
((
element
:
any
)
=>
{
element
.
display
=
true
;
});
}
...
...
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