mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
Feat: Create contact from contacts page (#1806)
* Add contact create modal to contacts page * Test cases * Review fixes
This commit is contained in:
committed by
GitHub
parent
6ba25bae3d
commit
c17380d48a
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable max-classes-per-file */
|
||||
export class DuplicateContactException extends Error {
|
||||
constructor(data) {
|
||||
super('DUPLICATE_CONTACT');
|
||||
@@ -5,3 +6,10 @@ export class DuplicateContactException extends Error {
|
||||
this.name = 'DuplicateContactException';
|
||||
}
|
||||
}
|
||||
export class ExceptionWithMessage extends Error {
|
||||
constructor(data) {
|
||||
super('ERROR_WITH_MESSAGE');
|
||||
this.data = data;
|
||||
this.name = 'ExceptionWithMessage';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user