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

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 22583e6e3 [INLONG-7047][Dashboard] Specific meanings of data 
subscription list fields (#7047) (#7048)
22583e6e3 is described below

commit 22583e6e37fcf7983af946aa310a39ec5f67f940
Author: kinfuy <[email protected]>
AuthorDate: Sat Dec 24 11:16:42 2022 +0800

    [INLONG-7047][Dashboard] Specific meanings of data subscription list fields 
(#7047) (#7048)
---
 inlong-dashboard/src/metas/consumes/common/ConsumeDefaultInfo.ts | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/inlong-dashboard/src/metas/consumes/common/ConsumeDefaultInfo.ts 
b/inlong-dashboard/src/metas/consumes/common/ConsumeDefaultInfo.ts
index c428d5c18..b57efd1e8 100644
--- a/inlong-dashboard/src/metas/consumes/common/ConsumeDefaultInfo.ts
+++ b/inlong-dashboard/src/metas/consumes/common/ConsumeDefaultInfo.ts
@@ -29,6 +29,7 @@ import {
   genStatusTag,
   genLastConsumerStatusTag,
 } from './status';
+import { consumes } from '..';
 
 const { I18nMap, I18n } = DataWithBackend;
 const { FieldList, FieldDecorator } = RenderRow;
@@ -107,7 +108,9 @@ export class ConsumeDefaultInfo implements DataWithBackend, 
RenderRow, RenderLis
   @I18n('meta.Consume.TargetInlongGroupID')
   inlongGroupId: string;
 
-  @ColumnDecorator()
+  @ColumnDecorator({
+    render: text => consumes.find(c => c.value === text)?.label || text,
+  })
   @I18n('meta.Consume.MQType')
   mqType: string;
 
@@ -158,7 +161,7 @@ export class ConsumeDefaultInfo implements DataWithBackend, 
RenderRow, RenderLis
     visible: false,
   })
   @ColumnDecorator({
-    render: text => genStatusTag(text),
+    render: text => text && genStatusTag(text),
   })
   @I18n('basic.Status')
   readonly status: string;

Reply via email to