Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/src/modules/settings/general/graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const configsGetEnv = `
query configsGetEnv {
configsGetEnv {
USE_BRAND_RESTRICTIONS
USE_CHAT_RESTRICTIONS
}
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,16 @@ function renderCreate(createUrl, createModal) {
);
}

if (createModal === INTEGRATION_KINDS.WHATSAPP) {
if (createModal === INTEGRATION_KINDS.WHATSPRO) {
const trigger = <h6>+ {__('Add')}</h6>;

const content = props => <WhatsappForm {...props} />;
const content = props => <WhatsProForm {...props} />;

return (
<ModalTrigger title="Add WhatsApp" trigger={trigger} content={content} />
<ModalTrigger title="Add WhatsPro" trigger={trigger} content={content} />
);
}

return <Link to={createUrl}>+ {__('Add')}</Link>;
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/modules/settings/integrations/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export type IntegrationTypes =
| 'smooch-telegram'
| 'smooch-viber'
| 'smooch-line'
| 'smooch-twilio';
| 'smooch-twilio'
| 'whatspro';

export type IntegrationsQueryResponse = {
Expand Down