mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	chore: Add loader for email and csat submit buttons (#2569)
* fix the loader issue in submit button * review fixes Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
This commit is contained in:
		@@ -47,7 +47,7 @@
 | 
			
		||||
    <customer-satisfaction
 | 
			
		||||
      v-if="isCSAT"
 | 
			
		||||
      :message-content-attributes="messageContentAttributes.submitted_values"
 | 
			
		||||
      @submit="onCSATSubmit"
 | 
			
		||||
      :message-id="messageId"
 | 
			
		||||
    />
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
@@ -125,17 +125,6 @@ export default {
 | 
			
		||||
        messageId: this.messageId,
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
    onCSATSubmit({ feedback, rating }) {
 | 
			
		||||
      this.onResponse({
 | 
			
		||||
        submittedValues: {
 | 
			
		||||
          csat_survey_response: {
 | 
			
		||||
            rating,
 | 
			
		||||
            feedback_message: feedback,
 | 
			
		||||
          },
 | 
			
		||||
        },
 | 
			
		||||
        messageId: this.messageId,
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user