You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/11/15 11:19:28 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #6546: [INLONG-6542][Dashboard] Optimize stream execution workflow and execution log

healchow commented on code in PR #6546:
URL: https://github.com/apache/inlong/pull/6546#discussion_r1022665585


##########
inlong-dashboard/src/pages/GroupDetail/DataStream/index.tsx:
##########
@@ -178,11 +184,14 @@ const Comp = ({ inlongGroupId, readonly, mqType }: Props, ref) => {
             <Button type="link" onClick={() => onDelete(record)}>
               {t('basic.Delete')}
             </Button>
-            {record?.status && (record?.status === 120 || record?.status === 130) && (
-              <Button type="link" onClick={() => onWorkflow(record)}>
-                {t('meta.Stream.ExecuteWorkflow')}
-              </Button>
-            )}
+            {record?.status &&
+              ((groupStatus === 130 && record?.status === 100) ||
+                groupStatus === 120 ||
+                groupStatus === 130) && (

Review Comment:
   Could you please move those two lines into one?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org