mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-07-16 21:14:27 +08:00
* feat: Creates cc bcc input component for reply box * Adds email inputs for cc and bcc * Cleans storybook code * Fixes eslint issues * Update app/javascript/dashboard/components/widgets/conversation/stories/ReplyEmailHead.stories.js Co-authored-by: Muhsin Keloth <[email protected]> * Review fixes * Update app/javascript/dashboard/components/widgets/conversation/stories/ReplyEmailHead.stories.js Co-authored-by: Muhsin Keloth <[email protected]> * Update app/javascript/dashboard/components/widgets/conversation/stories/ReplyEmailHead.stories.js Co-authored-by: Muhsin Keloth <[email protected]> * Update app/javascript/dashboard/components/widgets/conversation/stories/ReplyEmailHead.stories.js Co-authored-by: Muhsin Keloth <[email protected]> Co-authored-by: Muhsin Keloth <[email protected]>
8 lines
234 B
JavaScript
8 lines
234 B
JavaScript
import emailValidator from 'vuelidate/lib/validators/email';
|
|
|
|
export const validEmailsByComma = value => {
|
|
if (!value.length) return true;
|
|
const emails = value.split(',');
|
|
return emails.every(email => emailValidator(email));
|
|
};
|