From c2524c6707826b85091d296d43488a1915dbb96e Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 14 Dec 2020 19:33:14 +0100 Subject: [PATCH] fix eslint errors Signed-off-by: Julien Veyssier --- src/dashboard.js | 9 ++++----- src/views/Dashboard.vue | 23 +++++++++++------------ 2 files changed, 15 insertions(+), 17 deletions(-) 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 @@