Browse Source

fix: "Go to block " in running workflow

Ahmad Kholid 2 years ago
parent
commit
ee75ae26cd

+ 0 - 23
src/components/newtab/app/AppLogsItemRunning.vue

@@ -64,19 +64,6 @@
             <p class="flex-1">
               {{ t(`workflow.blocks.${block.name}.name`) }}
             </p>
-            <router-link
-              v-if="getBlockPath(block.id)"
-              :to="getBlockPath(block.id)"
-              title="Go to block"
-              class="invisible group-hover:visible"
-            >
-              <v-remixicon
-                name="riExternalLinkLine"
-                size="20"
-                title="Go to block"
-                class="text-gray-300 cursor-pointer ml-2 invisible group-hover:visible"
-              />
-            </router-link>
           </div>
         </template>
       </logs-history>
@@ -119,16 +106,6 @@ function stopWorkflow() {
   stopWorkflowExec(running.value.id);
   emit('close');
 }
-function getBlockPath(blockId) {
-  const { workflowId, teamId } = running.value;
-  let path = `/workflows/${workflowId}`;
-
-  if (workflowId.startsWith('team') && !teamId) return null;
-
-  path = `/teams/${teamId}/workflows/${workflowId}`;
-
-  return `${path}?blockId=${blockId}`;
-}
 
 watch(
   running,

+ 1 - 1
src/components/newtab/logs/LogsHistory.vue

@@ -164,7 +164,7 @@
                 />
               </router-link>
               <router-link
-                v-if="getBlockPath(item.blockId)"
+                v-if="!isRunning && getBlockPath(item.blockId)"
                 v-show="currentLog.workflowId && item.blockId"
                 :to="getBlockPath(item.blockId)"
               >