mirror of
https://github.com/wekan/wekan.git
synced 2026-02-18 22:18:07 +01:00
IFTTT: card colors: add an actual white entry
To unset the color through the IFTTT, we need a white entry. However, we do not want to show the white enry in the hamburger `Set Color` entry. We can also give the `white` capability to the API, it won't hurt and be more straightforward.
This commit is contained in:
parent
5769d438a0
commit
6e9bad5772
4 changed files with 19 additions and 8 deletions
|
|
@ -69,7 +69,7 @@ Cards.attachSchema(new SimpleSchema({
|
|||
type: String,
|
||||
optional: true,
|
||||
allowedValues: [
|
||||
'green', 'yellow', 'orange', 'red', 'purple',
|
||||
'white', 'green', 'yellow', 'orange', 'red', 'purple',
|
||||
'blue', 'sky', 'lime', 'pink', 'black',
|
||||
'silver', 'peachpuff', 'crimson', 'plum', 'darkgreen',
|
||||
'slateblue', 'magenta', 'gold', 'navy', 'gray',
|
||||
|
|
@ -1571,13 +1571,16 @@ if (Meteor.isServer) {
|
|||
*
|
||||
* @description Edit a card
|
||||
*
|
||||
* The color has to be chosen between `green`, `yellow`, `orange`, `red`,
|
||||
* `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`, `peachpuff`,
|
||||
* `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`, `gold`, `navy`,
|
||||
* `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`:
|
||||
* The color has to be chosen between `white`, `green`, `yellow`, `orange`,
|
||||
* `red`, `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`,
|
||||
* `peachpuff`, `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`,
|
||||
* `gold`, `navy`, `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`,
|
||||
* `indigo`:
|
||||
*
|
||||
* <img src="/card-colors.png" width="40%" alt="Wekan card colors" />
|
||||
*
|
||||
* Note: setting the color to white has the same effect than removing it.
|
||||
*
|
||||
* @param {string} boardId the board ID of the card
|
||||
* @param {string} list the list ID of the card
|
||||
* @param {string} cardId the ID of the card
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue