Merge branch 'develop' into feat/setup-eslint-rules
This commit is contained in:
@@ -474,7 +474,7 @@ export default {
|
||||
v-else-if="hasWhatsappTemplates"
|
||||
:inbox-id="selectedInbox.inbox.id"
|
||||
@on-select-template="toggleWaTemplate"
|
||||
@onSend="onSendWhatsAppReply"
|
||||
@on-send="onSendWhatsAppReply"
|
||||
/>
|
||||
<label v-else :class="{ error: v$.message.$error }">
|
||||
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.LABEL') }}
|
||||
@@ -527,7 +527,7 @@ export default {
|
||||
<AttachmentPreview
|
||||
class="[&>.preview-item]:dark:bg-slate-700 flex-row flex-wrap gap-x-3 gap-y-1"
|
||||
:attachments="attachedFiles"
|
||||
@removeAttachment="removeAttachment"
|
||||
:remove-attachment="removeAttachment"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -140,8 +140,8 @@ export default {
|
||||
:help-text="$t('HELP_CENTER.CATEGORY.ADD.NAME.HELP_TEXT')"
|
||||
:has-error="v$.name.$error"
|
||||
:error-message="$t('HELP_CENTER.CATEGORY.ADD.NAME.ERROR')"
|
||||
@nameChange="onNameChange"
|
||||
@iconChange="onClickInsertEmoji"
|
||||
@name-change="onNameChange"
|
||||
@icon-change="onClickInsertEmoji"
|
||||
/>
|
||||
<woot-input
|
||||
v-model.trim="slug"
|
||||
|
||||
+2
-2
@@ -151,8 +151,8 @@ export default {
|
||||
:error-message="$t('HELP_CENTER.CATEGORY.ADD.NAME.ERROR')"
|
||||
:existing-name="category.name"
|
||||
:saved-icon="category.icon"
|
||||
@nameChange="changeName"
|
||||
@iconChange="onClickInsertEmoji"
|
||||
@name-change="changeName"
|
||||
@icon-change="onClickInsertEmoji"
|
||||
/>
|
||||
<woot-input
|
||||
v-model.trim="slug"
|
||||
|
||||
@@ -3,7 +3,6 @@ import { mapGetters } from 'vuex';
|
||||
import automationMethodsMixin from 'dashboard/mixins/automations/methodsMixin';
|
||||
import FilterInputBox from 'dashboard/components/widgets/FilterInput/Index.vue';
|
||||
import AutomationActionInput from 'dashboard/components/widgets/AutomationActionInput.vue';
|
||||
// import { useVuelidate } from '@vuelidate/core';
|
||||
|
||||
import {
|
||||
AUTOMATION_RULE_EVENTS,
|
||||
|
||||
@@ -392,9 +392,9 @@ export default {
|
||||
<div class="widget-container w-100 lg:w-3/5">
|
||||
<InputRadioGroup
|
||||
name="widget-view-options"
|
||||
class="text-center"
|
||||
:items="getWidgetViewOptions"
|
||||
:action="handleWidgetViewChange"
|
||||
class="text-center"
|
||||
/>
|
||||
<div v-if="isWidgetPreview" class="widget-preview">
|
||||
<Widget
|
||||
|
||||
@@ -60,6 +60,11 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
removeObjectProperty(obj, keyToRemove) {
|
||||
return Object.fromEntries(
|
||||
Object.entries(obj).filter(([key]) => key !== keyToRemove)
|
||||
);
|
||||
},
|
||||
updateName(value) {
|
||||
this.macro.name = value;
|
||||
},
|
||||
@@ -73,9 +78,9 @@ export default {
|
||||
});
|
||||
},
|
||||
deleteNode(index) {
|
||||
// delete that index specifically
|
||||
// remove that index specifically
|
||||
// so that the next item does not get marked invalid
|
||||
delete this.errors[`action_${index}`];
|
||||
this.errors = this.removeObjectProperty(this.errors, `action_${index}`);
|
||||
this.macro.actions.splice(index, 1);
|
||||
},
|
||||
submit() {
|
||||
@@ -88,9 +93,9 @@ export default {
|
||||
this.$emit('submit', this.macro);
|
||||
},
|
||||
resetNode(index) {
|
||||
// delete that index specifically
|
||||
// remove that index specifically
|
||||
// so that the next item does not get marked invalid
|
||||
delete this.errors[`action_${index}`];
|
||||
this.errors = this.removeObjectProperty(this.errors, `action_${index}`);
|
||||
this.macro.actions[index].action_params = [];
|
||||
},
|
||||
resetValidation() {
|
||||
@@ -102,9 +107,9 @@ export default {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col w-full h-auto md:flex-row md:h-full">
|
||||
<div class="flex flex-col md:flex-row h-auto md:h-full w-full">
|
||||
<div
|
||||
class="flex-1 w-full h-full max-h-full px-12 py-4 overflow-y-auto md:w-auto macro-gradient-radial dark:macro-dark-gradient-radial macro-gradient-radial-size"
|
||||
class="flex-1 w-full md:w-auto macro-gradient-radial dark:macro-dark-gradient-radial macro-gradient-radial-size h-full max-h-full py-4 px-12 overflow-y-auto"
|
||||
>
|
||||
<MacroNodes
|
||||
v-model="macro.actions"
|
||||
|
||||
Reference in New Issue
Block a user