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
d3ea97fb
Commit
d3ea97fb
authored
Dec 08, 2021
by
Hamza HRAMCHI
Browse files
FIX #18927 TIME 0:02 fix condition
parent
7ceb162d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/plugins/mail-editor/mail-editor.component.ts
View file @
d3ea97fb
...
...
@@ -310,22 +310,20 @@ export class MailEditorComponent implements OnInit, OnDestroy {
}
});
if
(
this
.
emailStatus
!==
'
SENT
'
)
{
await
this
.
getAttachElements
(
false
);
const
attachIds
:
number
[]
=
this
.
emailAttachTool
.
attachments
.
list
.
map
((
item
:
any
)
=>
item
.
id
);
this
.
emailAttach
.
attachments
.
forEach
((
element
:
any
,
index
:
number
)
=>
{
if
(
attachIds
.
indexOf
(
element
.
id
)
>
-
1
)
{
const
attachment
:
any
=
this
.
emailAttachTool
.
attachments
.
list
.
find
((
item
:
any
)
=>
item
.
id
===
element
.
id
);
this
.
emailAttach
.
attachments
[
index
]
=
{
id
:
attachment
.
id
,
format
:
attachment
.
format
,
label
:
attachment
.
label
,
original
:
attachment
.
original
,
size
:
attachment
.
size
}
await
this
.
getAttachElements
(
false
);
const
attachIds
:
number
[]
=
this
.
emailAttachTool
.
attachments
.
list
.
map
((
item
:
any
)
=>
item
.
id
);
this
.
emailAttach
.
attachments
.
forEach
((
element
:
any
,
index
:
number
)
=>
{
if
(
attachIds
.
indexOf
(
element
.
id
)
>
-
1
)
{
const
attachment
:
any
=
this
.
emailAttachTool
.
attachments
.
list
.
find
((
item
:
any
)
=>
item
.
id
===
element
.
id
);
this
.
emailAttach
.
attachments
[
index
]
=
{
id
:
attachment
.
id
,
format
:
attachment
.
format
,
label
:
attachment
.
label
,
original
:
attachment
.
original
,
size
:
attachment
.
size
}
}
);
}
}
}
);
resolve
(
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