Skip to content
Snippets Groups Projects
Commit f40dc020 authored by Markus Escher's avatar Markus Escher
Browse files

add neon.colorconstants in TaskEntity

remove colorConstants from KeywordRegistry since its integrated in core
parent 6166d1d1
No related branches found
No related tags found
No related merge requests found
import("system.vars");
import("KeywordRegistry_basic");
import("system.result");
import("system.neon");
switch(vars.getString("$field.PRIORITY"))
{
case $KeywordRegistry.taskPriority$none():
result.string($KeywordRegistry.colorStyle$priorityNone());
result.string(neon.PRIORITY_NONE_COLOR);
break;
case $KeywordRegistry.taskPriority$low():
result.string($KeywordRegistry.colorStyle$priorityLow());
result.string(neon.PRIORITY_LOW_COLOR);
break;
case $KeywordRegistry.taskPriority$medium():
result.string($KeywordRegistry.colorStyle$priorityMedium()());
result.string(neon.PRIORITY_MEDIUM_COLOR);
break;
case $KeywordRegistry.taskPriority$high():
result.string($KeywordRegistry.colorStyle$priorityHigh());
result.string(neon.PRIORITY_HIGH_COLOR);
break;
}
......@@ -86,11 +86,3 @@ $KeywordRegistry.campaignState$planning = function(){return "e04c9c59-0590-463c-
$KeywordRegistry.campaignStepState = function(){return "CampaignManagementStepStates";};
$KeywordRegistry.campaignStepState$open = function(){return "bbf69673-2ec6-46f8-b231-684a31be9fbd";};
$KeywordRegistry.campaignStepCostCategory = function(){return "CampaignManagementCostCategory";};
$KeywordRegistry.colorStyle$priorityNone = function(){return "$priority-none-color";};
$KeywordRegistry.colorStyle$priorityLow = function(){return "$priority-low-color";};
$KeywordRegistry.colorStyle$priorityMedium = function(){return "$priority-medium-color";};
$KeywordRegistry.colorStyle$priorityHigh = function(){return "$priority-high-color";};
$KeywordRegistry.colorStyle$brand = function(){return "$brand-color";};
$KeywordRegistry.colorStyle$primaryAccent = function(){return "$primary-accent-color";};
$KeywordRegistry.colorStyle$secondaryAccent = function(){return "$secondary-accent-color";};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment