Browse Source

fix: cookie block

Ahmad Kholid 2 years ago
parent
commit
155e62c594

+ 1 - 1
src/background/workflowEngine/blocksHandler/handlerCookie.js

@@ -5,7 +5,7 @@ function getValues(data, keys) {
   keys.forEach((key) => {
     const value = data[key];
 
-    if (!value && typeof value !== 'boolean') return;
+    if (!value) return;
 
     values[key] = value;
   });

+ 8 - 0
src/components/newtab/workflow/settings/SettingsGeneral.vue

@@ -107,6 +107,14 @@
         {{ t('workflow.settings.publicId.description') }}
       </p>
     </div>
+    <a
+      href="https://docs.automa.site/blocks/trigger.html#trigger-using-js-customevent"
+      target="_blank"
+      rel="noopener"
+      class="mr-2 text-gray-600 dark:text-gray-200"
+    >
+      <v-remixicon name="riInformationLine" />
+    </a>
     <ui-input
       :model-value="settings.publicId"
       placeholder="myWorkflowPublicId"