Client Tasks v3 (#8926)

* tasks hover state

* hide column background if task too close

* wip edit tasks

* wip: replace tags

* upgrade bootstrap-vue and fix creare btn for tasks

* difficulty options colors and active label fixes

* fix tags
This commit is contained in:
Matteo Pagliazzi
2017-08-09 17:13:40 +02:00
committed by GitHub
parent 8d82566654
commit f57c647e21
16 changed files with 3505 additions and 120 deletions

View File

@@ -22,8 +22,14 @@ export let schema = new Schema({
});
schema.plugin(baseModel, {
noSet: ['_id', 'id', 'challenge'],
noSet: ['_id', 'challenge', 'group'],
_id: false, // use id instead of _id
});
// A list of additional fields that cannot be updated (but can be set on creation)
const noUpdate = ['id'];
schema.statics.sanitizeUpdate = function sanitizeUpdate (updateObj) {
return this.sanitize(updateObj, noUpdate);
};
export let model = mongoose.model('Tag', schema);