summaryrefslogtreecommitdiffstats
path: root/client/components/cards/minicard.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-26 02:29:36 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-26 02:29:36 +0200
commit8898862d36b1f0fe8e7d7bdc80064e5106894d29 (patch)
treea00cd41e7893d16ae7291f3d3fbd8d7a15639066 /client/components/cards/minicard.js
parent2cc35077409886847870fa554449fd668c2353bf (diff)
downloadwekan-8898862d36b1f0fe8e7d7bdc80064e5106894d29.tar.gz
wekan-8898862d36b1f0fe8e7d7bdc80064e5106894d29.tar.bz2
wekan-8898862d36b1f0fe8e7d7bdc80064e5106894d29.zip
Fix lint errors.
Diffstat (limited to 'client/components/cards/minicard.js')
-rw-r--r--client/components/cards/minicard.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/components/cards/minicard.js b/client/components/cards/minicard.js
index a9f92dec..1ea608f5 100644
--- a/client/components/cards/minicard.js
+++ b/client/components/cards/minicard.js
@@ -1,3 +1,5 @@
+import { Cookies } from 'meteor/ostrio:cookies';
+const cookies = new Cookies();
// Template.cards.events({
// 'click .member': Popup.open('cardMember')
// });
@@ -18,8 +20,6 @@ BlazeComponent.extendComponent({
},
{
'click .js-toggle-minicard-label-text'() {
- import { Cookies } from 'meteor/ostrio:cookies';
- const cookies = new Cookies();
if (cookies.has('hiddenMinicardLabelText')) {
cookies.remove('hiddenMinicardLabelText'); //true
} else {
@@ -37,8 +37,6 @@ Template.minicard.helpers({
if (currentUser) {
return (currentUser.profile || {}).showDesktopDragHandles;
} else {
- import { Cookies } from 'meteor/ostrio:cookies';
- const cookies = new Cookies();
if (cookies.has('showDesktopDragHandles')) {
return true;
} else {
@@ -51,8 +49,6 @@ Template.minicard.helpers({
if (currentUser) {
return (currentUser.profile || {}).hiddenMinicardLabelText;
} else {
- import { Cookies } from 'meteor/ostrio:cookies';
- const cookies = new Cookies();
if (cookies.has('hiddenMinicardLabelText')) {
return true;
} else {