diff --git a/src/Bundle/ChillMainBundle/Controller/DashboardApiController.php b/src/Bundle/ChillMainBundle/Controller/DashboardApiController.php
index bc045a596..0b618c6f4 100644
--- a/src/Bundle/ChillMainBundle/Controller/DashboardApiController.php
+++ b/src/Bundle/ChillMainBundle/Controller/DashboardApiController.php
@@ -19,17 +19,17 @@ class DashboardApiController
{
}
+ public function indexApi()
+ {
+ return $this->getDashboardConfiguration();
+ }
+
+ // I dont understand why this method is needed, but if I do a cache clear without this method present, he gives an error saying it needs to be present.
public function setCrudConfig()
{
return null;
}
-
- /**
- * Give the user dashboard configuration
- *
- * @Route("/api/1.0/main/dashboard-config-item.json", methods={"post"})
- */
public function getDashboardConfiguration(): JsonResponse
{
$data = [
diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue
index 908b9eb1c..ea87277d5 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue
+++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/App.vue
@@ -97,6 +97,8 @@ import MyNotifications from './MyNotifications';
import MyWorkflows from './MyWorkflows.vue';
import TabCounter from './TabCounter';
import { mapState } from "vuex";
+import { makeFetch } from "ChillMainAssets/lib/api/apiMethods";
+
export default {
name: "App",
@@ -112,7 +114,7 @@ export default {
},
data() {
return {
- activeTab: 'MyCustoms'
+ activeTab: 'MyCustoms',
}
},
computed: {
@@ -131,7 +133,6 @@ export default {
}
},
mounted() {
- this.$store.dispatch('getDashboardItems', {userId: 1})
for (const m of [
'MyNotifications',
'MyAccompanyingCourses',
diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidget/News/News.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidget/News/News.vue
deleted file mode 100644
index e69de29bb..000000000
diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidgets/News.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidgets/News.vue
new file mode 100644
index 000000000..d6e607810
--- /dev/null
+++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidgets/News.vue
@@ -0,0 +1,106 @@
+
+ {{ $t('widget.news.title') }}
+
+
+ {{ item.title }}
+