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 @@ ...@@ -5,9 +5,16 @@
</ng-container> </ng-container>
<ng-template #elseTemplate> <ng-template #elseTemplate>
<div class="mailList" *ngFor="let mail of mails"> <div class="mailList" *ngFor="let mail of mails">
<div class="date" [title]="mail.creation_date | fullDate"> <ng-container *ngIf="mail.status === 'SENT'; else elseTemplate">
{{mail.send_date | timeAgo}} <div class="date" [title]="mail.send_date | fullDate">
</div> {{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"> <div class="info">
{{mail.object}} {{mail.object}}
</div> </div>
......
...@@ -45,4 +45,10 @@ ...@@ -45,4 +45,10 @@
width: 35px; width: 35px;
color: $secondary; color: $secondary;
font-weight: bold; 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 = { ...@@ -1253,4 +1253,5 @@ export const LANG_EN = {
"notesAlt" : "Notes", "notesAlt" : "Notes",
"mailsSentAlt" : "Resources sent", "mailsSentAlt" : "Resources sent",
"newsFeed" : "News feed", "newsFeed" : "News feed",
"sendError" : "Send error",
}; };
...@@ -1290,4 +1290,5 @@ export const LANG_FR = { ...@@ -1290,4 +1290,5 @@ export const LANG_FR = {
"notesAlt" : "Annotations", "notesAlt" : "Annotations",
"mailsSentAlt" : "Éléments envoyés", "mailsSentAlt" : "Éléments envoyés",
"newsFeed" : "Fil d'actualité", "newsFeed" : "Fil d'actualité",
"sendError" : "Erreur d'envoi",
}; };
...@@ -1278,4 +1278,5 @@ export const LANG_NL = { ...@@ -1278,4 +1278,5 @@ export const LANG_NL = {
"notesAlt" : "Notes", //_TO_TRANSLATE "notesAlt" : "Notes", //_TO_TRANSLATE
"mailsSentAlt" : "Resources sent", //_TO_TRANSLATE "mailsSentAlt" : "Resources sent", //_TO_TRANSLATE
"newsFeed" : "News feed", //_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.
Please register or to comment