Added option to show/hide some badges on minicard

This commit is contained in:
helioguardabaxo 2023-05-31 14:49:02 -03:00
parent 7df32ff4ac
commit f3ebc4a28e
6 changed files with 94 additions and 6 deletions

View file

@ -415,6 +415,22 @@ Boards.attachSchema(
defaultValue: false,
},
allowsBadgeAttachmentOnMinicard: {
/**
* Does the board allows badge attachment on minicard?
*/
type: Boolean,
defaultValue: false,
},
allowsCardSortingByNumberOnMinicard: {
/**
* Does the board allows card sorting by number on minicard?
*/
type: Boolean,
defaultValue: false,
},
allowsCardNumber: {
/**
* Does the board allows card numbers?
@ -1471,6 +1487,14 @@ Boards.mutations({
return { $set: { allowsCoverAttachmentOnMinicard } };
},
setallowsBadgeAttachmentOnMinicard(allowsBadgeAttachmentOnMinicard) {
return { $set: { allowsBadgeAttachmentOnMinicard } };
},
setallowsCardSortingByNumberOnMinicard(allowsCardSortingByNumberOnMinicard) {
return { $set: { allowsCardSortingByNumberOnMinicard } };
},
setAllowsActivities(allowsActivities) {
return { $set: { allowsActivities } };
},