fix host name formatting bug

This commit is contained in:
Alexander Zobnin
2017-12-15 14:09:45 +03:00
parent 87d6bd4b96
commit ea0c5a29b5
5 changed files with 136 additions and 53 deletions

View File

@@ -428,7 +428,7 @@ export class TriggerPanelCtrl extends PanelCtrl {
if (this.panel.hostField && this.panel.hostTechNameField) {
return `${trigger.host} (${trigger.hostTechName})`;
} else if (this.panel.hostField || this.panel.hostTechNameField) {
return trigger.host || trigger.hostTechName;
return this.panel.hostField ? trigger.host : trigger.hostTechName;
} else {
return "";
}