mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	feat: Custom attribute sidebar list UX improvements (#9070)
--------- Co-authored-by: Pranav <pranav@chatwoot.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
		@@ -29,33 +29,6 @@ export default {
 | 
			
		||||
    conversationId() {
 | 
			
		||||
      return this.currentChat.id;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    filteredAttributes() {
 | 
			
		||||
      return Object.keys(this.customAttributes).map(key => {
 | 
			
		||||
        const item = this.attributes.find(
 | 
			
		||||
          attribute => attribute.attribute_key === key
 | 
			
		||||
        );
 | 
			
		||||
        if (item) {
 | 
			
		||||
          return {
 | 
			
		||||
            ...item,
 | 
			
		||||
            value: this.customAttributes[key],
 | 
			
		||||
          };
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return {
 | 
			
		||||
          ...item,
 | 
			
		||||
          value: this.customAttributes[key],
 | 
			
		||||
          attribute_description: key,
 | 
			
		||||
          attribute_display_name: key,
 | 
			
		||||
          attribute_display_type: this.attributeDisplayType(
 | 
			
		||||
            this.customAttributes[key]
 | 
			
		||||
          ),
 | 
			
		||||
          attribute_key: key,
 | 
			
		||||
          attribute_model: this.attributeType,
 | 
			
		||||
          id: Math.random(),
 | 
			
		||||
        };
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    isAttributeNumber(attributeValue) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user