Client Fixed (#9017)

* fix spacing between rewards and items

* fix rewards description

* rewards cost in bold

* fix gp notifications

* fix dailies gray text

* fix cancel in task edit modal

* tags: use AND not OR for filtering

* fix tasksDefaults so that monthlies can be created correctly

* tags: usable if no task selected, saving checklist and tags saved the one being added without requiting to press enter

* remove tags from tasks when they are deleted

* fix tags removal when multiple tags are deleted and fix tags editing
This commit is contained in:
Matteo Pagliazzi
2017-09-02 18:08:32 +02:00
committed by GitHub
parent c2aaa9b592
commit 0424d214c5
11 changed files with 92 additions and 60 deletions

View File

@@ -25,8 +25,13 @@ module.exports = function taskDefaults (task = {}) {
challenge: {
shortName: 'None',
},
group: {},
yesterDaily: true,
group: {
approval: {
required: false,
approved: false,
requested: false,
},
},
reminders: [],
attribute: 'str',
createdAt: new Date(), // TODO these are going to be overwritten by the server...
@@ -74,6 +79,9 @@ module.exports = function taskDefaults (task = {}) {
startDate: moment().startOf('day').toDate(),
everyX: 1,
frequency: 'weekly',
daysOfMonth: [],
weeksOfMonth: [],
yesterDaily: true,
});
}