mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
fix secondary text color update with secondary sign display (#5124)
* fix secondary text color update with secondary sign display * Fixes lint errors Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
This commit is contained in:
parent
2fb7352ee8
commit
44db9e7952
1 changed files with 7 additions and 0 deletions
|
|
@ -128,6 +128,13 @@ export const Inspector = ({
|
|||
if (param.type === 'select' && defaultValue) {
|
||||
allParams[defaultValue.paramName]['value'] = defaultValue.value;
|
||||
}
|
||||
if (param.name === 'secondarySignDisplay') {
|
||||
if (value === 'negative') {
|
||||
newDefinition['styles']['secondaryTextColour']['value'] = '#EE2C4D';
|
||||
} else if (value === 'positive') {
|
||||
newDefinition['styles']['secondaryTextColour']['value'] = '#36AF8B';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
allParams[param.name] = value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue