From 71ae305fb38f8ab8dc9d8023b3b0de7ffa31ac56 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 28 Dec 2023 23:56:22 +0200 Subject: [PATCH] #170 Fixed select the agent but the list is empty --- .../util/utm-agent-detail/utm-agent-detail.component.html | 6 +++--- .../util/utm-agent-select/utm-agent-select.component.html | 1 - .../utm/util/utm-agent-select/utm-agent-select.component.ts | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/shared/components/utm/util/utm-agent-detail/utm-agent-detail.component.html b/frontend/src/app/shared/components/utm/util/utm-agent-detail/utm-agent-detail.component.html index 6adf3894e..8d6a650ca 100644 --- a/frontend/src/app/shared/components/utm/util/utm-agent-detail/utm-agent-detail.component.html +++ b/frontend/src/app/shared/components/utm/util/utm-agent-detail/utm-agent-detail.component.html @@ -31,20 +31,20 @@
Type:  -
Group Source:  -
Comment:  - +
OS Version:  diff --git a/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.html b/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.html index 5eabd7483..365b269af 100644 --- a/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.html +++ b/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.html @@ -6,7 +6,6 @@ [virtualScroll]="true" [searchable]="true" [(ngModel)]="agent" - bindValue="id" id="agentSelector" placeholder="Select agent" [ngStyle]="{'min-width':'150px'}"> diff --git a/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.ts b/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.ts index cb6e424eb..61b1f4e9f 100644 --- a/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.ts +++ b/frontend/src/app/shared/components/utm/util/utm-agent-select/utm-agent-select.component.ts @@ -12,7 +12,7 @@ export class UtmAgentSelectComponent implements OnInit { @Output() agentSelect = new EventEmitter(); agents: AgentType[]; agentStatusEnum = AgentStatusEnum; - agent: AgentType; + agent: any; constructor(private utmAgentManagerService: UtmAgentManagerService) { } @@ -42,7 +42,7 @@ export class UtmAgentSelectComponent implements OnInit { selectAgent($event: AgentType | any) { - this.agent = $event; + this.agent = `${$event.hostname} (${$event.os})`; this.agentSelect.emit($event); } }