vogievetsky commented on a change in pull request #7705: Web-Console: add go to 
editor button to tasks and supervisors view
URL: https://github.com/apache/incubator-druid/pull/7705#discussion_r285795335
 
 

 ##########
 File path: web-console/src/views/tasks-view.tsx
 ##########
 @@ -508,18 +518,24 @@ ORDER BY "rank" DESC, "created_time" DESC`);
     </>;
   }
 
-  // --------------------------------------
-
-  private getTaskActions(id: string, status: string): BasicAction[] {
-    if (status !== 'RUNNING' && status !== 'WAITING' && status !== 'PENDING') 
return [];
-    return [
-      {
-        icon: IconNames.CROSS,
+  private getTaskActions(id: string, status: string, type: string): 
BasicAction[] {
+    const actions = [];
+    if (type === 'index' || type === 'index_parallel') {
+      actions.push({
+        title: 'Open in json spec editor',
+        intent: Intent.DANGER,
 
 Review comment:
   Why is the intent danger?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to