From e903cca66aaf46babec97dfbbaaeef71b7365c11 Mon Sep 17 00:00:00 2001 From: vinay sharma Date: Wed, 17 Feb 2021 16:23:01 +0530 Subject: [PATCH] Show the description column on environment tab (#4722) * added changes to show the description on env tab Signed-off-by: Vinay Sharma * added changes for truncate long text Signed-off-by: Vinay Sharma --- .../environments/environments.component.html | 10 ++++++++++ .../infra-proxy/infra-roles/infra-roles.component.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/automate-ui/src/app/modules/infra-proxy/environments/environments.component.html b/components/automate-ui/src/app/modules/infra-proxy/environments/environments.component.html index 47760368e8c..9fd350c633c 100644 --- a/components/automate-ui/src/app/modules/infra-proxy/environments/environments.component.html +++ b/components/automate-ui/src/app/modules/infra-proxy/environments/environments.component.html @@ -6,6 +6,10 @@ Name + Description + + + @@ -13,6 +17,12 @@ {{ environment.name }} + + {{ (environment.description.length > 30)? (environment.description | slice:0:30)+'...' : environment.description }} + + + + diff --git a/components/automate-ui/src/app/modules/infra-proxy/infra-roles/infra-roles.component.html b/components/automate-ui/src/app/modules/infra-proxy/infra-roles/infra-roles.component.html index f2fdc79633b..a52bfaec373 100644 --- a/components/automate-ui/src/app/modules/infra-proxy/infra-roles/infra-roles.component.html +++ b/components/automate-ui/src/app/modules/infra-proxy/infra-roles/infra-roles.component.html @@ -17,7 +17,7 @@ {{ role.name }} - {{ role.description === '' ? '...' : role.description }} + {{ (role.description.length > 30)? (role.description | slice:0:30)+'...' : role.description }} {{ role.environments.join(", ") }}