mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
vue homepage_widget: improve translations, titles, tabs order, add no data statement
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<div class="accompanying_course_work">
|
||||
<h2>{{ $t('my_works.title') }}</h2>
|
||||
<tab-table>
|
||||
<div class="alert alert-light">{{ $t('my_works.description') }}</div>
|
||||
<span v-if="noResults" class="chill-no-data-statement">{{ $t('no_data') }}</span>
|
||||
<tab-table v-else>
|
||||
<template v-slot:thead>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">{{ $t('StartDate') }}</th>
|
||||
@@ -48,7 +49,14 @@ export default {
|
||||
]),
|
||||
...mapGetters([
|
||||
'isWorksLoaded',
|
||||
])
|
||||
]),
|
||||
noResults() {
|
||||
if (!this.isWorksLoaded) {
|
||||
return false;
|
||||
} else {
|
||||
return this.works.count === 0;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getEntityName(w) {
|
||||
|
Reference in New Issue
Block a user