mirror of
https://github.com/wekan/wekan.git
synced 2026-01-02 07:38:49 +01:00
Use new colors constants
This commit is contained in:
parent
302ba75729
commit
ed6c6e5a25
3 changed files with 8 additions and 54 deletions
|
|
@ -4,7 +4,7 @@ import {
|
|||
TYPE_BOARD,
|
||||
TYPE_TEMPLATE_BOARD,
|
||||
TYPE_TEMPLATE_CONTAINER,
|
||||
} from '../config/const';
|
||||
} from '/config/const';
|
||||
|
||||
const escapeForRegex = require('escape-string-regexp');
|
||||
Boards = new Mongo.Collection('boards');
|
||||
|
|
@ -1324,7 +1324,7 @@ Boards.colorMap = () => {
|
|||
};
|
||||
|
||||
Boards.labelColors = () => {
|
||||
return _.clone(Boards.simpleSchema()._schema['labels.$.color'].allowedValues);
|
||||
return ALLOWED_COLORS;
|
||||
};
|
||||
|
||||
if (Meteor.isServer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue