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
6ad51809
Commit
6ad51809
authored
May 07, 2021
by
Hamza HRAMCHI
Browse files
FIX #16628 TIME 0:10 disable input if recipientDisabled is true
parent
a38ad335
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/frontend/plugins/mail-editor/mail-editor.component.html
View file @
6ad51809
...
...
@@ -31,7 +31,7 @@
<input
[formControl]=
"recipientsInput"
#recipientsField
[matChipInputFor]=
"recipientsList"
[matChipInputSeparatorKeyCodes]=
"separatorKeysCodes"
[matChipInputAddOnBlur]=
"true"
(matChipInputTokenEnd)=
"add($event, 'recipients')"
[matAutocomplete]=
"autoEmails"
(focus)=
"resetAutocomplete()"
(paste)=
"onPaste($event,'recipients')"
[attr.disabled]=
"recipientDisabled"
>
(focus)=
"resetAutocomplete()"
(paste)=
"onPaste($event,'recipients')"
[readonly]=
"recipientDisabled"
[attr.disabled]=
"recipientDisabled"
>
</mat-chip-list>
<mat-autocomplete
#autoEmails
="
matAutocomplete
"
(optionSelected)=
"addEmail($event.option.value, 'recipients')"
>
<mat-option
*ngFor=
"let option of filteredEmails | async"
[value]=
"option"
>
...
...
src/frontend/plugins/mail-editor/mail-editor.component.ts
View file @
6ad51809
...
...
@@ -69,7 +69,7 @@ export class MailEditorComponent implements OnInit, OnDestroy {
emailSubject
:
string
=
''
;
emailStatus
:
string
=
'
WAITING
'
;
recipientsInput
:
FormControl
=
new
FormControl
();
recipientsInput
:
FormControl
=
new
FormControl
(
{
disabled
:
this
.
recipientDisabled
}
);
filteredEmails
:
Observable
<
string
[]
>
;
emailSignListForm
=
new
FormControl
();
...
...
@@ -115,7 +115,6 @@ export class MailEditorComponent implements OnInit, OnDestroy {
)
{
}
async
ngOnInit
()
{
if
(
this
.
readonly
)
{
this
.
setReadonly
();
}
...
...
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