This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 1258c4a  Fix #509
1258c4a is described below

commit 1258c4a4d6a8e39418d712fc544a4f0b2820e148
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Tue Nov 1 10:18:37 2022 -0400

    Fix #509
---
 karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx 
b/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx
index 5059449..ae65df7 100644
--- a/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx
+++ b/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx
@@ -302,7 +302,7 @@ export class ProjectInfo extends React.Component<Props, 
State> {
     getStatusColor(status?: string) {
         if (status === 'UP') return 'green';
         if (status === 'DOWN') return 'red';
-        if (status === 'NA') return 'blue';
+        if (status === 'UNDEFINED') return 'grey';
     }
 
     getStatusIcon(status?: string) {
@@ -323,7 +323,7 @@ export class ProjectInfo extends React.Component<Props, 
State> {
                 <Label icon={this.getStatusIcon(contextStatus)} 
color={this.getStatusColor(contextStatus)}>Context</Label>
                 <Label icon={this.getStatusIcon(consumersStatus)} 
color={this.getStatusColor(consumersStatus)}>Consumers</Label>
                 <Label icon={this.getStatusIcon(routesStatus)} 
color={this.getStatusColor(routesStatus)}>Routes</Label>
-                {registryStatus !== 'NA' &&
+                {registryStatus !== 'UNDEFINED' &&
                     <Label icon={this.getStatusIcon(registryStatus)} 
color={this.getStatusColor(registryStatus)}>Registry</Label>}
             </LabelGroup>
         )

Reply via email to