if condition to check if a sender is assigned or if notification was assigned automatically by the system

This commit is contained in:
Julie Lenaerts 2022-02-14 14:05:59 +01:00
parent e028c1ca2b
commit 61cf838458
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,8 @@
<a :href="getNotificationUrl(n)">{{ n.title }}</a> <a :href="getNotificationUrl(n)">{{ n.title }}</a>
</span> </span>
</td> </td>
<td>{{ n.sender.text }}</td> <td v-if="n.sender != null">{{ n.sender.text }}</td>
<td v-else>{{ $t('automatic_notification')}}</td>
<td> <td>
<a class="btn btn-sm btn-show" <a class="btn btn-sm btn-show"
:href="getEntityUrl(n)"> :href="getEntityUrl(n)">

View File

@ -53,6 +53,7 @@ const appMessages = {
}, },
emergency: "Urgent", emergency: "Urgent",
confidential: "Confidentiel", confidential: "Confidentiel",
automatic_notification: "Notification automatique"
} }
}; };