add a message to history to say when it's empty

This commit is contained in:
axolotle 2021-04-09 22:32:27 +02:00
parent f5b5ba5905
commit b65e87d17a
2 changed files with 5 additions and 0 deletions

View file

@ -201,6 +201,7 @@
"groups_and_permissions_manage": "Manage groups and permissions", "groups_and_permissions_manage": "Manage groups and permissions",
"permissions": "Permissions", "permissions": "Permissions",
"history": { "history": {
"is_empty": "Nothing in history for now.",
"title": "History", "title": "History",
"last_action": "Last action:", "last_action": "Last action:",
"methods": { "methods": {

View file

@ -33,6 +33,10 @@
class="accordion" role="tablist" class="accordion" role="tablist"
id="history" ref="history" id="history" ref="history"
> >
<p v-if="history.length === 0" class="alert m-0 px-2 py-1">
{{ $t('history.is_empty') }}
</p>
<!-- ACTION LIST --> <!-- ACTION LIST -->
<b-card <b-card
v-for="(action, i) in history" :key="i" v-for="(action, i) in history" :key="i"