Compare commits
2 Commits
fa41dda3a7
...
76db507654
| Author | SHA1 | Date | |
|---|---|---|---|
| 76db507654 | |||
| b35c3ee7da |
11
components/ui/index.js
Normal file
11
components/ui/index.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
export { Badge } from './badge';
|
||||||
|
export { Button } from './button';
|
||||||
|
export { Card } from './card';
|
||||||
|
export { Checkbox } from './checkbox';
|
||||||
|
export { Input } from './input';
|
||||||
|
export { Label } from './label';
|
||||||
|
export { RadioGroup } from './radio-group';
|
||||||
|
export { Select } from './select';
|
||||||
|
export { Skeleton } from './skeleton';
|
||||||
|
export { Switch } from './switch';
|
||||||
|
export { Textarea } from './textarea';
|
||||||
@ -787,6 +787,17 @@ export default class MessageBus {
|
|||||||
EventBus.getInstance().emit('PAIRING_CREATED', correlationId, message.decodedData);
|
EventBus.getInstance().emit('PAIRING_CREATED', correlationId, message.decodedData);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'CONVERSATION_CREATED':
|
||||||
|
if (this.errors[correlationId]) {
|
||||||
|
const error = this.errors[correlationId];
|
||||||
|
delete this.errors[correlationId];
|
||||||
|
EventBus.getInstance().emit('ERROR_CONVERSATION_CREATED', correlationId, error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
EventBus.getInstance().emit('MESSAGE_RECEIVED', message);
|
||||||
|
EventBus.getInstance().emit('CONVERSATION_CREATED', correlationId, message.decodedData);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'ERROR':
|
case 'ERROR':
|
||||||
console.error('Error:', message);
|
console.error('Error:', message);
|
||||||
this.errors[correlationId] = message.error;
|
this.errors[correlationId] = message.error;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user