diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue
index 719e46670..33b3b7206 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue
+++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue
@@ -6,7 +6,7 @@
+ @click="selectTab('MyCustoms')">
@@ -115,9 +115,20 @@ export default {
},
methods: {
selectTab(tab) {
- this.$store.dispatch('getByTab', tab);
+ this.$store.dispatch('getByTab', { tab: tab });
this.activeTab = tab;
}
+ },
+ mounted() {
+ for (const m of [
+ 'MyNotifications',
+ 'MyAccompanyingCourses',
+ 'MyWorks',
+ 'MyEvaluations',
+ 'MyTasks',
+ ]) {
+ this.$store.dispatch('getByTab', { tab: m, param: "countOnly=1" });
+ }
}
}
diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/MyCustoms.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/MyCustoms.vue
index 8f974d0d8..65de954ee 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/MyCustoms.vue
+++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/MyCustoms.vue
@@ -1,32 +1,76 @@
{{ $t('no_dashboard') }}
-
+
+
- Mon bloc personnalisé
-
- x notifications non lues
- x tâches en rappel
- x ...
-
+
+ -
+ {{ counter.notifications }} {{ $t('counter.unread_notifications') }}
+
+ -
+ {{ counter.accompanyingCourses }} {{ $t('counter.assignated_courses') }}
+
+ -
+ {{ counter.works }} {{ $t('counter.assignated_actions') }}
+
+ -
+ {{ counter.evaluations }} {{ $t('counter.assignated_evaluations') }}
+
+ -
+ {{ counter.tasksAlert }} {{ $t('counter.alert_tasks') }}
+
+ -
+ {{ counter.tasksWarning }} {{ $t('counter.warning_tasks') }}
+
+
+
+
+