From 043084600ce9a2a1fefa9f76db8bb1b25e67d50d Mon Sep 17 00:00:00 2001 From: joaoguilherme2003 Date: Mon, 8 May 2023 14:13:10 -0300 Subject: [PATCH] fix(orb-ui): #106 Add filter for unkown and idle sinks, remove filter for removed agents (#2351) fix(orb-ui): #106 Add filter for unkown and idle sinks, remove filter for removed agents (#2351) --- ui/src/app/common/interfaces/orb/agent.interface.ts | 1 - ui/src/app/common/interfaces/orb/sink.interface.ts | 2 ++ ui/src/app/shared/components/filter/filter.component.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/app/common/interfaces/orb/agent.interface.ts b/ui/src/app/common/interfaces/orb/agent.interface.ts index bffd30f2b..6c5309276 100644 --- a/ui/src/app/common/interfaces/orb/agent.interface.ts +++ b/ui/src/app/common/interfaces/orb/agent.interface.ts @@ -16,7 +16,6 @@ export enum AgentStates { online = 'online', offline = 'offline', stale = 'stale', - removed = 'removed', } /** diff --git a/ui/src/app/common/interfaces/orb/sink.interface.ts b/ui/src/app/common/interfaces/orb/sink.interface.ts index 736822a7d..4f1b78c3e 100644 --- a/ui/src/app/common/interfaces/orb/sink.interface.ts +++ b/ui/src/app/common/interfaces/orb/sink.interface.ts @@ -14,6 +14,8 @@ import { OrbEntity } from 'app/common/interfaces/orb/orb.entity.interface'; export enum SinkStates { active = 'active', error = 'error', + idle = 'idle', + unknown = 'unknown', } /** diff --git a/ui/src/app/shared/components/filter/filter.component.html b/ui/src/app/shared/components/filter/filter.component.html index 1e1d082a6..49209d6d7 100644 --- a/ui/src/app/shared/components/filter/filter.component.html +++ b/ui/src/app/shared/components/filter/filter.component.html @@ -134,7 +134,7 @@ [ngClass]="option" [value]="option" > - {{ option }} + {{ option | ngxCapitalize }}