mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	fix: Pre-chat message is not showing in campaign (#6821)
* Fix pre-chat form header issue * Show pre-message if pre-chat form enabled
This commit is contained in:
		@@ -105,10 +105,13 @@ export default {
 | 
			
		||||
      return this.hasActiveCampaign || this.preChatFormEnabled;
 | 
			
		||||
    },
 | 
			
		||||
    headerMessage() {
 | 
			
		||||
      if (this.preChatFormEnabled) {
 | 
			
		||||
        return this.options.preChatMessage;
 | 
			
		||||
      }
 | 
			
		||||
      if (this.hasActiveCampaign) {
 | 
			
		||||
        return this.$t('PRE_CHAT_FORM.CAMPAIGN_HEADER');
 | 
			
		||||
      }
 | 
			
		||||
      return this.options.preChatMessage;
 | 
			
		||||
      return '';
 | 
			
		||||
    },
 | 
			
		||||
    preChatFields() {
 | 
			
		||||
      return this.preChatFormEnabled ? this.options.preChatFields : [];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user