Target subtitle added

This commit is contained in:
barsdeveloper
2022-11-19 19:14:25 +01:00
parent b55779312b
commit 1353a4ff4f
10 changed files with 101 additions and 61 deletions

View File

@@ -157,15 +157,7 @@ export default class PinElement extends IElement {
}
getPinDisplayName() {
let matchResult = null
if (
this.entity.PinToolTip
// Match up until the first \n excluded or last character
&& (matchResult = this.entity.PinToolTip.match(/\s*(.+?(?=\n)|.+\S)\s*/))
) {
return Utility.formatStringName(matchResult[1])
}
return Utility.formatStringName(this.entity.PinName)
return this.entity.getDisplayName()
}
/** @return {CSSResult} */