|
@@ -14,13 +14,6 @@
|
|
|
{{ t('workflow.blocks.conditions.add') }}
|
|
|
</ui-button>
|
|
|
<div class="flex-grow"></div>
|
|
|
- <ui-button
|
|
|
- v-tooltip:bottom="t('workflow.blocks.conditions.refresh')"
|
|
|
- icon
|
|
|
- @click="refreshConnections"
|
|
|
- >
|
|
|
- <v-remixicon name="riRefreshLine" />
|
|
|
- </ui-button>
|
|
|
<ui-button
|
|
|
v-tooltip:bottom="t('common.settings')"
|
|
|
icon
|
|
@@ -126,7 +119,6 @@ import { useI18n } from 'vue-i18n';
|
|
|
import { nanoid } from 'nanoid';
|
|
|
import Draggable from 'vuedraggable';
|
|
|
import { sleep } from '@/utils/helper';
|
|
|
-import emitter from '@/lib/mitt';
|
|
|
import SharedConditionBuilder from '@/components/newtab/shared/SharedConditionBuilder/index.vue';
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -170,10 +162,6 @@ function editCondition(index) {
|
|
|
function addCondition() {
|
|
|
if (conditions.value.length >= 20) return;
|
|
|
|
|
|
- emitter.emit('conditions-block:add', {
|
|
|
- id: props.blockId,
|
|
|
- });
|
|
|
-
|
|
|
conditions.value.push({
|
|
|
id: nanoid(),
|
|
|
name: `Path ${conditions.value.length + 1}`,
|
|
@@ -189,11 +177,6 @@ function deleteCondition(index, id) {
|
|
|
);
|
|
|
});
|
|
|
}
|
|
|
-function refreshConnections() {
|
|
|
- emitter.emit('conditions-block:refresh', {
|
|
|
- id: props.blockId,
|
|
|
- });
|
|
|
-}
|
|
|
function updateData(value) {
|
|
|
emit('update:data', { ...props.data, ...value });
|
|
|
}
|