mirror of
https://github.com/directus/directus.git
synced 2026-01-29 23:47:57 -05:00
add empty state to revisions (#10697)
This commit is contained in:
@@ -1209,6 +1209,7 @@ relationship: Relationship
|
||||
reset: Reset
|
||||
reset_password: Reset Password
|
||||
revisions: Revisions
|
||||
no_revisions: No Revisions Yet
|
||||
revert: Revert
|
||||
save: Save
|
||||
schema: Schema
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
>
|
||||
<v-progress-linear v-if="loading" indeterminate />
|
||||
|
||||
<div v-else-if="revisionsCount === 0" class="empty">
|
||||
<div class="content">{{ t('no_revisions') }}</div>
|
||||
</div>
|
||||
|
||||
<template v-else>
|
||||
<template v-for="group in revisionsByDate" :key="group.date.toString()">
|
||||
<RevisionsDateGroup :group="group" @click="openModal" />
|
||||
@@ -264,6 +268,7 @@ export default defineComponent({
|
||||
.empty {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 16px;
|
||||
margin-left: 2px;
|
||||
color: var(--foreground-subdued);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user