Browse Source

feat: highlight when "on error" enabled in block

Ahmad Kholid 3 năm trước cách đây
mục cha
commit
e560d673df

+ 1 - 1
src/components/newtab/workflow/edit/EditNewTab.vue

@@ -12,8 +12,8 @@
       </label>
       <ui-textarea
         id="new-tab-url"
+        key="anu"
         :model-value="data.url"
-        rows="1"
         class="w-full"
         autocomplete="off"
         placeholder="http://example.com/"

+ 0 - 1
src/components/newtab/workflow/edit/EditProxy.vue

@@ -42,7 +42,6 @@
     <ui-textarea
       id="input-bypass"
       :model-value="data.bypassList"
-      rows="1"
       placeholder="example1.com, example2.org"
       class="w-full"
       @change="updateData({ bypassList: $event })"

+ 0 - 1
src/components/newtab/workflow/edit/EditWebhook.vue

@@ -20,7 +20,6 @@
       <ui-textarea
         :model-value="data.url"
         :label="`${t('workflow.blocks.webhook.url')}*`"
-        rows="1"
         placeholder="http://api.example.com"
         class="w-full"
         autocomplete="off"

+ 4 - 1
src/components/newtab/workflow/edit/OnBlockError.vue

@@ -1,6 +1,9 @@
 <template>
   <div class="on-block-error">
-    <ui-button @click="state.showModal = true">
+    <ui-button
+      :class="{ 'text-primary': state.data.enable }"
+      @click="state.showModal = true"
+    >
       <v-remixicon name="riShieldLine" class="-ml-1 mr-2" />
       <span>
         {{ t('workflow.blocks.base.onError.button') }}