Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fuchs committed Nov 6, 2020
1 parent b9a4456 commit b8bfbe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qml/components/NotificationList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ QtObject {
}
}
if (publishQueue.length > 0) {
console.log(publishQueue, publishQueue[0].subject)
//console.log(publishQueue, publishQueue[0].subject)
//sort by due date
publishQueue.sort(function(a,b){
//console.log(a.dueDate.getTime(), b.dueDate.getTime(),a.dueDate.getTime() - b.dueDate.getTime())
return JS.tools.isoToDate(a.due).getTime() - JS.tools.isoToDate(b.due).getTime()
})
console.log(publishQueue, publishQueue[0].subject)
//console.log(publishQueue, publishQueue[0].subject)

//crop publishQueue
if (notificationSettings.maxCount > 0) {
publishQueue.splice(notificationSettings.maxCount, publishQueue.length)
}
console.log(notificationSettings.maxCount, publishQueue, publishQueue[0].subject)
//console.log(notificationSettings.maxCount, publishQueue, publishQueue[0].subject)

//revers publicQueue (has no effect? how do get notifications sorted in the end?)
//publishQueue = publishQueue.reverse()
console.log(publishQueue, publishQueue[0].subject)
//console.log(publishQueue, publishQueue[0].subject)
var notificationComp, notification
publishQueue.forEach(function(task){
notificationComp = Qt.createComponent(Qt.resolvedUrl("./Notification.qml"))
Expand Down

0 comments on commit b8bfbe9

Please sign in to comment.