uprava UI pro planovani
This commit is contained in:
@@ -18,11 +18,14 @@ function deyeModeLabel(s: SlotData): string {
|
||||
|
||||
function deyeModeBadge(s: SlotData): { label: string; klass: string; title: string } {
|
||||
const m = s.deye_physical_mode
|
||||
const em = (s.export_mode ?? 'NONE').toString().trim().toUpperCase()
|
||||
const exportHint =
|
||||
em !== 'NONE' ? ` · plán export ${em}` : ''
|
||||
if (m === 'SELL') {
|
||||
return {
|
||||
label: 'SELL',
|
||||
klass: 'bg-orange-500/15 text-orange-200 ring-1 ring-orange-500/35',
|
||||
title: 'SELL (selling first): reg142=0, reg178=32 (grid peak shaving off)',
|
||||
title: `SELL (selling first): reg142=0, reg178=32 (grid peak shaving off)${exportHint}`,
|
||||
}
|
||||
}
|
||||
if (m === 'CHARGE') {
|
||||
|
||||
Reference in New Issue
Block a user