diff --git a/src/dashboard.js b/src/dashboard.js index 48132a91..8c2720ef 100644 --- a/src/dashboard.js +++ b/src/dashboard.js @@ -12,11 +12,10 @@ */ import Vue from 'vue' -import { translate, translatePlural } from '@nextcloud/l10n' -import Dashboard from './views/Dashboard' +import Dashboard from './views/Dashboard.vue' -Vue.prototype.t = translate -Vue.prototype.n = translatePlural +Vue.prototype.t = t +Vue.prototype.n = n Vue.prototype.OC = window.OC Vue.prototype.OCA = window.OCA @@ -25,7 +24,7 @@ document.addEventListener('DOMContentLoaded', function() { OCA.Dashboard.register('social_notifications', (el, { widget }) => { const View = Vue.extend(Dashboard) new View({ - propsData: { title: widget.title }, + propsData: { title: widget.title } }).$mount(el) }) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index bb5cbf8a..ead86748 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -23,8 +23,7 @@