mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
dropdown items
This commit is contained in:
parent
caad952bc1
commit
3753337d60
10 changed files with 211 additions and 70 deletions
|
|
@ -9,6 +9,24 @@ CustomFields.attachSchema(new SimpleSchema({
|
|||
},
|
||||
type: {
|
||||
type: String,
|
||||
allowedValues: ['text', 'number', 'checkbox', 'date', 'dropdown']
|
||||
},
|
||||
settings: {
|
||||
type: Object,
|
||||
},
|
||||
'settings.dropdownItems': {
|
||||
type: [Object],
|
||||
optional: true
|
||||
},
|
||||
'settings.dropdownItems.$': {
|
||||
type: new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
},
|
||||
})
|
||||
},
|
||||
showOnCard: {
|
||||
type: Boolean,
|
||||
|
|
@ -83,6 +101,7 @@ if (Meteor.isServer) {
|
|||
const id = CustomFields.direct.insert({
|
||||
name: req.body.name,
|
||||
type: req.body.type,
|
||||
settings: req.body.settings,
|
||||
showOnCard: req.body.showOnCard,
|
||||
boardId: paramBoardId,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue