Skip to content
Snippets Groups Projects
Commit 88af1c4c authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #12033 TIME 0:10 add status error

parent 258a8d72
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,16 @@
</ng-container>
<ng-template #elseTemplate>
<div class="mailList" *ngFor="let mail of mails">
<div class="date" [title]="mail.creation_date | fullDate">
{{mail.send_date | timeAgo}}
</div>
<ng-container *ngIf="mail.status === 'SENT'; else elseTemplate">
<div class="date" [title]="mail.send_date | fullDate">
{{mail.send_date | timeAgo}}
</div>
</ng-container>
<ng-template #elseTemplate>
<div *ngIf="mail.status === 'ERROR'" class="error" [title]="mail.send_date | fullDate">
{{lang.sendError}}
</div>
</ng-template>
<div class="info">
{{mail.object}}
</div>
......
......@@ -45,4 +45,10 @@
width: 35px;
color: $secondary;
font-weight: bold;
}
.error {
padding: 5px;
font-style: italic;
color: $warn
}
\ No newline at end of file
......@@ -1253,4 +1253,5 @@ export const LANG_EN = {
"notesAlt" : "Notes",
"mailsSentAlt" : "Resources sent",
"newsFeed" : "News feed",
"sendError" : "Send error",
};
......@@ -1290,4 +1290,5 @@ export const LANG_FR = {
"notesAlt" : "Annotations",
"mailsSentAlt" : "Éléments envoyés",
"newsFeed" : "Fil d'actualité",
"sendError" : "Erreur d'envoi",
};
......@@ -1278,4 +1278,5 @@ export const LANG_NL = {
"notesAlt" : "Notes", //_TO_TRANSLATE
"mailsSentAlt" : "Resources sent", //_TO_TRANSLATE
"newsFeed" : "News feed", //_TO_TRANSLATE
"sendError" : "Send error", //_TO_TRANSLATE
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment