저장팝업 텍스트 색상 수정
This commit is contained in:
@@ -136,6 +136,22 @@ export function resetPaletteItems(kind: PaletteItemKind): PaletteItem[] {
|
||||
return items;
|
||||
}
|
||||
|
||||
/** 전략편집기·전략빌더에 표시할 지표명 (우측 팔레트 label 우선) */
|
||||
const STRATEGY_INDICATOR_TYPE_ALIASES: Record<string, string> = {
|
||||
NEW_PSYCHOLOGICAL: 'PSYCHOLOGICAL',
|
||||
};
|
||||
|
||||
export function getStrategyIndicatorDisplayName(indicatorType: string): string {
|
||||
const resolved = STRATEGY_INDICATOR_TYPE_ALIASES[indicatorType] ?? indicatorType;
|
||||
|
||||
for (const kind of ['auxiliary', 'composite'] as const) {
|
||||
const item = loadPaletteItems(kind).find(i => i.value === resolved);
|
||||
if (item?.label) return item.label;
|
||||
}
|
||||
|
||||
return resolved;
|
||||
}
|
||||
|
||||
export function createPaletteItemId(): string {
|
||||
return `custom-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user