Bläddra i källkod

feat: exclude some blocks on package

Ahmad Kholid 2 år sedan
förälder
incheckning
eb08b2a075

+ 3 - 2
src/components/newtab/logs/LogsHistory.vue

@@ -151,7 +151,7 @@
       <div class="p-4 relative">
       <div class="p-4 relative">
         <v-remixicon
         <v-remixicon
           name="riCloseLine"
           name="riCloseLine"
-          class="absolute top-2 right-2 cursor-pointer text-gray-300"
+          class="absolute top-2 right-2 cursor-pointer text-gray-500"
           @click="clearActiveItem"
           @click="clearActiveItem"
         />
         />
         <table class="w-full ctx-data-table">
         <table class="w-full ctx-data-table">
@@ -233,6 +233,7 @@ import {
 } from 'vue';
 } from 'vue';
 import { useI18n } from 'vue-i18n';
 import { useI18n } from 'vue-i18n';
 import { countDuration } from '@/utils/helper';
 import { countDuration } from '@/utils/helper';
+import { tasks } from '@/utils/shared';
 import dayjs from '@/lib/dayjs';
 import dayjs from '@/lib/dayjs';
 import objectPath from 'object-path';
 import objectPath from 'object-path';
 
 
@@ -348,7 +349,7 @@ function translateLog(log) {
   } else {
   } else {
     copyLog.name = getTranslatation(
     copyLog.name = getTranslatation(
       `workflow.blocks.${log.name}.name`,
       `workflow.blocks.${log.name}.name`,
-      log.name
+      tasks[log.name].name
     );
     );
   }
   }
 
 

+ 1 - 1
src/newtab/pages/workflows/[id].vue

@@ -910,7 +910,7 @@ function onNodesChange(changes) {
       nodeChanges.removed.push(id);
       nodeChanges.removed.push(id);
     } else if (type === 'add') {
     } else if (type === 'add') {
       if (isPackage) {
       if (isPackage) {
-        const excludeBlocks = ['block-package', 'trigger'];
+        const excludeBlocks = ['block-package', 'trigger', 'execute-workflow'];
         if (excludeBlocks.includes(item.label)) {
         if (excludeBlocks.includes(item.label)) {
           editor.value.removeNodes([item]);
           editor.value.removeNodes([item]);
         }
         }