mirror of
https://github.com/wekan/wekan.git
synced 2026-01-23 01:36:09 +01:00
New feature, not set visible yet, because switching to it does not work properly yet: Collapsible Swimlanes #2804 Fix: Public board now loads correctly. When you select one of Lists/Swimlanes/Calendar view and reload webbrowser page, it can change view. Closes #2311 Fix: List sorting commented out. Closes #2800 Fix: Errors hasHiddenMinicardText, hasShowDragHandles, showSort, hasSortBy, profile, FirefoxAndroid/IE11/Vivaldi/Chromium browsers not working by using cookies instead of database. More details at https://github.com/wekan/wekan/issues/2643#issuecomment-554907955 Note: Cookie changes are not always immediate, if there is no effect, you may need to reload webbrowser page. Closes #2643 . Thanks to xet7 !
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
// Template.cards.events({
|
|
// 'click .member': Popup.open('cardMember')
|
|
// });
|
|
|
|
BlazeComponent.extendComponent({
|
|
template() {
|
|
return 'minicard';
|
|
},
|
|
|
|
events() {
|
|
return [
|
|
{
|
|
'click .js-linked-link'() {
|
|
if (this.data().isLinkedCard()) Utils.goCardId(this.data().linkedId);
|
|
else if (this.data().isLinkedBoard())
|
|
Utils.goBoardId(this.data().linkedId);
|
|
},
|
|
},
|
|
{
|
|
'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 {
|
|
cookies.set('hiddenMinicardLabelText', 'true'); //true
|
|
}
|
|
},
|
|
},
|
|
];
|
|
},
|
|
}).register('minicard');
|
|
|
|
Template.minicard.helpers({
|
|
showDesktopDragHandles() {
|
|
import { Cookies } from 'meteor/ostrio:cookies';
|
|
const cookies = new Cookies();
|
|
if (cookies.has('showDesktopDragHandles')) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
},
|
|
hiddenMinicardLabelText() {
|
|
import { Cookies } from 'meteor/ostrio:cookies';
|
|
const cookies = new Cookies();
|
|
if (cookies.has('hiddenMinicardLabelText')) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
},
|
|
});
|