1
0
Fork 0
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:
Lukas Corona 2025-02-18 21:46:42 +01:00
parent b0e9ed6162
commit be58e5b0bd
18 changed files with 317 additions and 169 deletions

View file

@ -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,
},
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗