Allow to style special visualisations, no cursor if popups are disabled

This commit is contained in:
Pieter Vander Vennet 2021-06-23 02:41:30 +02:00
parent c13e6727c3
commit 5e991bdc02
7 changed files with 19 additions and 15 deletions

View file

@ -40,7 +40,7 @@ export class SubstitutedTranslation extends VariableUiElement {
// We found a special component that should be brought to live
const partBefore = SubstitutedTranslation.EvaluateSpecialComponents(matched[1], tags);
const argument = matched[2].trim();
const style = matched[3] ?? ""
const style = matched[3]?.substring(1) ?? ""
const partAfter = SubstitutedTranslation.EvaluateSpecialComponents(matched[4], tags);
try {
const args = knownSpecial.args.map(arg => arg.defaultValue ?? "");