Skip to content

Commit

Permalink
feat: update no-data view on sharable table
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger committed Dec 30, 2024
1 parent 39493e3 commit ae6bfc3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions public/assets/splash_images/undraw_shared-goals_jn0a.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion resources/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@
"can-delete": "Can Delete",
"can-edit": "Can Edit",
"edit-dialog-title": "Modify Sharing Permissions",
"expires-at": "Expires At"
"expires-at": "Expires At",
"not-shared-yet": "Not shared with anyone yet"
},
"shareable-dialog": {
"abilities-text": "By default, the user has the ability to view the resource. You can also allow the user to edit and delete this resource.",
Expand Down
3 changes: 2 additions & 1 deletion resources/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@
"can-delete": "Peut supprimer",
"can-edit": "Peut éditer",
"edit-dialog-title": "Modifier les autorisations de partage",
"expires-at": "Expire à"
"expires-at": "Expire à",
"not-shared-yet": "Pas encore partagé avec personne"
},
"shareable-dialog": {
"abilities-text": "Par défaut, l'utilisateur a la possibilité de visualiser la ressource. \nVous pouvez également autoriser l'utilisateur à modifier et supprimer cette ressource.",
Expand Down
17 changes: 16 additions & 1 deletion resources/src/models/Shareable/components/ShareableTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const columns = computed<QTableColumnProps>(() => {
label: t('common.user'),
align: 'left',
field: (row: ShareableResource) =>
`${row.data.user.data.first_name} ${row.data.user.data.last_name}`,
`${row.data.user.data.first_name} ${row.data.user.data.last_name}`,
},
{
name: 'email',
Expand Down Expand Up @@ -131,6 +131,21 @@ function editShareable(shareable: ShareableResource) {
/>
</q-td>
</template>
<template #no-data>
<div class="col-12 flex row justify-center q-ma-lg">
<div class="flex column text-center">
<div>
<q-img
src="/assets/splash_images/undraw_shared-goals_jn0a.svg"
width="250px"
/>
</div>
<div class="text-h5 text-weight-light text-primary q-mt-sm">
{{ $t('shareable.not-shared-yet') }}
</div>
</div>
</div>
</template>
</q-table>
</template>

Expand Down

0 comments on commit ae6bfc3

Please sign in to comment.