summaryrefslogtreecommitdiffstats
path: root/src/dashboard-items.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/dashboard-items.js')
-rw-r--r--src/dashboard-items.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dashboard-items.js b/src/dashboard-items.js
new file mode 100644
index 000000000..564d10d62
--- /dev/null
+++ b/src/dashboard-items.js
@@ -0,0 +1,11 @@
+import Vue from 'vue'
+import NewsItemWidget from './components/ItemDashboard.vue'
+
+document.addEventListener('DOMContentLoaded', () => {
+ console.log("I'm alive")
+ OCA.Dashboard.register('news-item-widget', (el) => {
+ console.log("Dashboard registered")
+ const View = Vue.extend(NewsItemWidget)
+ new View().$mount(el)
+ })
+})