mirror of
https://github.com/plankanban/planka.git
synced 2025-07-29 18:19:46 +02:00
feat: add option to edit the color of a list
This commit is contained in:
parent
b0e9ed6162
commit
be58e5b0bd
18 changed files with 317 additions and 169 deletions
|
@ -12,6 +12,19 @@ const SortTypes = {
|
|||
CREATED_AT_DESC: 'createdAt_desc',
|
||||
};
|
||||
|
||||
const COLORS = [
|
||||
'berry-red',
|
||||
'pumpkin-orange',
|
||||
'lagoon-blue',
|
||||
'pink-tulip',
|
||||
'light-mud',
|
||||
'orange-peel',
|
||||
'bright-moss',
|
||||
'antique-blue',
|
||||
'dark-granite',
|
||||
'lagune-blue',
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
SortTypes,
|
||||
|
||||
|
@ -28,6 +41,11 @@ module.exports = {
|
|||
type: 'string',
|
||||
required: true,
|
||||
},
|
||||
color: {
|
||||
type: 'string',
|
||||
allowNull: true,
|
||||
isIn: COLORS,
|
||||
},
|
||||
|
||||
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||||
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue