fix: Allow editing label and placeholder for standard attributes in pre chat form (#6067)

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
Muhsin Keloth
2022-12-15 23:06:18 +05:30
committed by GitHub
parent f8e6308caf
commit 9106f6278d
3 changed files with 9 additions and 19 deletions

View File

@@ -43,7 +43,6 @@
<script>
import draggable from 'vuedraggable';
import { standardFieldKeys } from 'dashboard/helper/preChat';
export default {
components: { draggable },
props: {
@@ -64,7 +63,7 @@ export default {
},
methods: {
isFieldEditable(item) {
return !!standardFieldKeys[item.name] || !item.enabled;
return !item.enabled;
},
handlePreChatFieldOptions(event, type, item) {
this.$emit('update', event, type, item);