Use new colors constants

This commit is contained in:
John R. Supplee 2021-04-03 18:52:47 +02:00
parent 302ba75729
commit ed6c6e5a25
3 changed files with 8 additions and 54 deletions

View file

@ -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) {