mirror of
https://github.com/wekan/wekan.git
synced 2026-02-05 08:01:49 +01:00
Code cleanup
This commit is contained in:
parent
be970e4cea
commit
9061180983
6 changed files with 51 additions and 53 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { CardSearchPagedComponent } from "../../lib/cardSearch";
|
||||
import { CardSearchPagedComponent } from '../../lib/cardSearch';
|
||||
|
||||
BlazeComponent.extendComponent({}).register('brokenCardsHeaderBar');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { CardSearchPagedComponent } from '../../lib/cardSearch';
|
||||
|
||||
const subManager = new SubsManager();
|
||||
// const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
dueCardsView() {
|
||||
|
|
@ -81,8 +81,8 @@ class DueCardsComponent extends CardSearchPagedComponent {
|
|||
}
|
||||
|
||||
cards.sort((a, b) => {
|
||||
const x = a.dueAt === null ? Date('2100-12-31') : a.dueAt;
|
||||
const y = b.dueAt === null ? Date('2100-12-31') : b.dueAt;
|
||||
const x = a.dueAt === null ? new Date('2100-12-31') : a.dueAt;
|
||||
const y = b.dueAt === null ? new Date('2100-12-31') : b.dueAt;
|
||||
|
||||
if (x > y) return 1;
|
||||
else if (x < y) return -1;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { CardSearchPagedComponent } from '../../lib/cardSearch';
|
||||
import moment from 'moment';
|
||||
|
||||
// const subManager = new SubsManager();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { CardSearchPagedComponent } from '../../lib/cardSearch';
|
||||
|
||||
const subManager = new SubsManager();
|
||||
// const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
myCardsSort() {
|
||||
|
|
@ -180,8 +180,8 @@ class MyCardsComponent extends CardSearchPagedComponent {
|
|||
});
|
||||
|
||||
cards.sort((a, b) => {
|
||||
const x = a.dueAt === null ? Date('2100-12-31') : a.dueAt;
|
||||
const y = b.dueAt === null ? Date('2100-12-31') : b.dueAt;
|
||||
const x = a.dueAt === null ? new Date('2100-12-31') : a.dueAt;
|
||||
const y = b.dueAt === null ? new Date('2100-12-31') : b.dueAt;
|
||||
|
||||
if (x > y) return 1;
|
||||
else if (x < y) return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue